fix(terminal): do not trim whitespace that is actually in the terminal (#16423)

This commit is contained in:
zeertzjq
2022-05-17 21:09:28 +08:00
committed by GitHub
parent bbfc4567df
commit f49699737c
4 changed files with 66 additions and 15 deletions

View File

@@ -496,12 +496,13 @@ describe('sysinit', function()
it('fixed hang issue with -D (#12647)', function()
if helpers.pending_win32(pending) then return end
local screen
screen = Screen.new(60, 6)
screen = Screen.new(60, 7)
screen:attach()
command([[let g:id = termopen('"]]..nvim_prog..
[[" -u NONE -i NONE --cmd "set noruler" -D')]])
screen:expect([[
^ |
|
Entering Debug mode. Type "cont" to continue. |
cmd: augroup nvim_terminal |
> |
@@ -512,6 +513,7 @@ describe('sysinit', function()
screen:expect([[
^ |
~ |
~ |
[No Name] |
|
<" -u NONE -i NONE --cmd "set noruler" -D 1,0-1 All|