diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-10-18 14:50:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-10-18 14:50:18 +0200 |
commit | 025e3e0bafbc85cc4e365145af711edf99d0a90d (patch) | |
tree | 0bbd3a565a44576e714d9f8c7c85fd5e6255ad9b /src/testdir/test_diffmode.vim | |
parent | 9ec7fa82a2c4f0283862ed704c2940959e6130ee (diff) | |
download | vim-git-025e3e0bafbc85cc4e365145af711edf99d0a90d.tar.gz |
patch 8.0.0044v8.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.
Diffstat (limited to 'src/testdir/test_diffmode.vim')
-rw-r--r-- | src/testdir/test_diffmode.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index 5de394de8..f40e06ff3 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -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 |