mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 08:44:06 +00:00
refactor(terminal): impl "[Process exited]" in Lua #38343
Problem: "[Process exited]" is implemented in C with anonymous namespace and users have no way to hide it. Solution: - Handle "TermClose" event in Lua. - User can delete the "nvim.terminal" augroup to avoid "[Process exited]".
This commit is contained in:
@@ -180,6 +180,7 @@ nvim.terminal:
|
||||
- BufReadCmd: Treats "term://" buffers as |terminal| buffers. |terminal-start|
|
||||
- TermClose: A |terminal| buffer started with no arguments (which thus uses
|
||||
'shell') and which exits with no error is closed automatically.
|
||||
- TermClose: Displays the "[Process exited]" virtual text.
|
||||
- TermRequest: The terminal emulator responds to OSC background and foreground
|
||||
requests, indicating (1) a black background and white foreground when Nvim
|
||||
option 'background' is "dark" or (2) a white background and black foreground
|
||||
|
||||
Reference in New Issue
Block a user