mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 01:34:16 +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:
@@ -215,7 +215,7 @@ local function test_terminal_with_fake_shell(backslash)
|
||||
command('terminal')
|
||||
screen:expect([[
|
||||
^ready $ |
|
||||
[Process exited 0] |
|
||||
|
|
||||
|*2
|
||||
]])
|
||||
end)
|
||||
@@ -297,7 +297,7 @@ local function test_terminal_with_fake_shell(backslash)
|
||||
command('terminal')
|
||||
screen:expect([[
|
||||
^ready $ |
|
||||
[Process exited 0] |
|
||||
|
|
||||
|*2
|
||||
]])
|
||||
eq('term://', string.match(eval('bufname("%")'), '^term://'))
|
||||
|
||||
Reference in New Issue
Block a user