mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 02:21:51 +00:00
vim-patch:8.2.3394: filler lines are wrong when changing text in diff mode (#15547)
Problem: Filler lines are wrong when changing text in diff mode.
Solution: Don't change the filler lines on every change. Check
scrollbinding when updating the filler lines. (closes vim/vim#8809)
04626c243c
This commit is contained in:
committed by
GitHub
parent
51a98aa0c2
commit
de406f651c
@@ -965,6 +965,30 @@ func Test_diff_screen()
|
||||
call delete('XdiffSetup')
|
||||
endfunc
|
||||
|
||||
func Test_diff_with_scroll_and_change()
|
||||
CheckScreendump
|
||||
|
||||
let lines =<< trim END
|
||||
call setline(1, range(1, 15))
|
||||
vnew
|
||||
call setline(1, range(9, 15))
|
||||
windo diffthis
|
||||
wincmd h
|
||||
exe "normal Gl5\<C-E>"
|
||||
END
|
||||
call writefile(lines, 'Xtest_scroll_change')
|
||||
let buf = RunVimInTerminal('-S Xtest_scroll_change', {})
|
||||
|
||||
call VerifyScreenDump(buf, 'Test_diff_scroll_change_01', {})
|
||||
|
||||
call term_sendkeys(buf, "ax\<Esc>")
|
||||
call VerifyScreenDump(buf, 'Test_diff_scroll_change_02', {})
|
||||
|
||||
" clean up
|
||||
call StopVimInTerminal(buf)
|
||||
call delete('Xtest_scroll_change')
|
||||
endfunc
|
||||
|
||||
func Test_diff_with_cursorline()
|
||||
CheckScreendump
|
||||
|
||||
|
||||
Reference in New Issue
Block a user