vim-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.

025e3e0baf
This commit is contained in:
ckelsel
2017-07-19 22:48:05 +08:00
committed by James McCoy
parent 30cb66e8ba
commit 8dddf55907
4 changed files with 54 additions and 44 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