diff options
| author | ckelsel <ckelsel@hotmail.com> | 2017-07-19 22:48:05 +0800 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2017-08-16 12:48:58 -0400 |
| commit | 8dddf5590796994254fb31b4cbe1736ec3faf9f6 (patch) | |
| tree | 3ded9ed145e3d073608cf20f023e0089c7126984 /src/nvim/testdir | |
| parent | 30cb66e8ba520d4564189ff763b5859e3d80581f (diff) | |
| download | rneovim-8dddf5590796994254fb31b4cbe1736ec3faf9f6.tar.gz rneovim-8dddf5590796994254fb31b4cbe1736ec3faf9f6.tar.bz2 rneovim-8dddf5590796994254fb31b4cbe1736ec3faf9f6.zip | |
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.
https://github.com/vim/vim/commit/025e3e0bafbc85cc4e365145af711edf99d0a90d
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_diffmode.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_diffmode.vim b/src/nvim/testdir/test_diffmode.vim index 5de394de8e..f40e06ff33 100644 --- a/src/nvim/testdir/test_diffmode.vim +++ b/src/nvim/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 |