diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-09-12 07:36:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-12 07:36:28 +0200 |
| commit | 931e15471c10857af73aa0f0caa3aaaefe5986be (patch) | |
| tree | 08d50983aa75fb9960bd3f4cc5c79af6bc5d5254 /src/nvim/testdir | |
| parent | 61df24b9982c26c068e5fafbc79fd059a067d998 (diff) | |
| parent | e15c34fbc29b4d98566f80a0d65436081a32e5b5 (diff) | |
| download | rneovim-931e15471c10857af73aa0f0caa3aaaefe5986be.tar.gz rneovim-931e15471c10857af73aa0f0caa3aaaefe5986be.tar.bz2 rneovim-931e15471c10857af73aa0f0caa3aaaefe5986be.zip | |
Merge #8984 from janlazo/vim-8.1.0034
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_edit.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index 1effc8e12f..b1fce07f39 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -1338,6 +1338,14 @@ func! Test_edit_rightleft() bw! endfunc +func Test_edit_backtick() + next a\`b c + call assert_equal('a`b', expand('%')) + next + call assert_equal('c', expand('%')) + call assert_equal('a\`b c', expand('##')) +endfunc + func Test_edit_quit() edit foo.txt split @@ -1390,3 +1398,18 @@ func Test_edit_complete_very_long_name() endif set swapfile& endfunc + +func Test_edit_alt() + " Keeping the cursor line didn't happen when the first line has indent. + new + call setline(1, [' one', 'two', 'three']) + w XAltFile + $ + call assert_equal(3, line('.')) + e Xother + e # + call assert_equal(3, line('.')) + + bwipe XAltFile + call delete('XAltFile') +endfunc |