0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.0.0044

Problem:    In diff mode the cursor may end up below the last line, resulting
            in an ml_get error.
Solution:   Check the line to be valid.
This commit is contained in:
Bram Moolenaar
2016-10-18 14:50:18 +02:00
parent 9ec7fa82a2
commit 025e3e0baf
5 changed files with 54 additions and 36 deletions

View File

@@ -218,3 +218,20 @@ func Test_diffoff()
bwipe!
bwipe!
endfunc
func Test_setting_cursor()
new Xtest1
put =range(1,90)
wq
new Xtest2
put =range(1,100)
wq
tabe Xtest2
$
diffsp Xtest1
tabclose
call delete('Xtest1')
call delete('Xtest2')
endfunc