diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-11-03 05:13:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-03 05:13:52 +0900 |
| commit | 75ad5587477b1fc90cb0c693794ee7053c3339c7 (patch) | |
| tree | 7f6833fff12f8052c444db6b2e6ab6585f27e622 /src/nvim/testdir | |
| parent | 90981f5861e4c23c6a23a0082261b074ba48ea47 (diff) | |
| parent | 1c43fb1d51cd76ccca142e73d72af56f6fb0461d (diff) | |
| download | rneovim-75ad5587477b1fc90cb0c693794ee7053c3339c7.tar.gz rneovim-75ad5587477b1fc90cb0c693794ee7053c3339c7.tar.bz2 rneovim-75ad5587477b1fc90cb0c693794ee7053c3339c7.zip | |
Merge #11324 from janlazo/vim-8.1.2235
vim-patch:8.1.{2235,2236}
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_substitute.vim | 10 | ||||
| -rw-r--r-- | src/nvim/testdir/test_virtualedit.vim | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_substitute.vim b/src/nvim/testdir/test_substitute.vim index b29b678129..e209310a05 100644 --- a/src/nvim/testdir/test_substitute.vim +++ b/src/nvim/testdir/test_substitute.vim @@ -149,6 +149,7 @@ func Run_SubCmd_Tests(tests) for t in a:tests let start = line('.') + 1 let end = start + len(t[2]) - 1 + " TODO: why is there a one second delay the first time we get here? exe "normal o" . t[0] call cursor(start, 1) exe t[1] @@ -717,3 +718,12 @@ one two close! endfunc + +func Test_sub_beyond_end() + new + call setline(1, '#') + let @/ = '^#\n\zs' + s///e + call assert_equal('#', getline(1)) + bwipe! +endfunc diff --git a/src/nvim/testdir/test_virtualedit.vim b/src/nvim/testdir/test_virtualedit.vim index 67adede8d7..1e6b26a057 100644 --- a/src/nvim/testdir/test_virtualedit.vim +++ b/src/nvim/testdir/test_virtualedit.vim @@ -73,3 +73,12 @@ func Test_edit_CTRL_G() bwipe! set virtualedit= endfunc + +func Test_edit_change() + new + set virtualedit=all + call setline(1, "\t⒌") + normal Cx + call assert_equal('x', getline(1)) + bwipe! +endfunc |