diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-22 06:28:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 06:28:55 +0800 |
commit | 50b249930675b4443e95f880a3e4f98f0ee92abf (patch) | |
tree | d14085e9665e2763c46ec339262a728391e0a4d0 /test/old/testdir | |
parent | 774455dc371736e83afc62eca67ceec3e2dedb5d (diff) | |
parent | dabc44d15c8ef203b16e00dfa93c5e2639680bc4 (diff) | |
download | rneovim-50b249930675b4443e95f880a3e4f98f0ee92abf.tar.gz rneovim-50b249930675b4443e95f880a3e4f98f0ee92abf.tar.bz2 rneovim-50b249930675b4443e95f880a3e4f98f0ee92abf.zip |
Merge pull request #27971 from zeertzjq/vim-9.1.0192
vim-patch:9.1.{0192,0195}: drop: don't rewind when editing the same file
Diffstat (limited to 'test/old/testdir')
-rw-r--r-- | test/old/testdir/test_excmd.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/old/testdir/test_excmd.vim b/test/old/testdir/test_excmd.vim index b7356c22fa..4a780078fd 100644 --- a/test/old/testdir/test_excmd.vim +++ b/test/old/testdir/test_excmd.vim @@ -3,6 +3,7 @@ source check.vim source shared.vim source term_util.vim +source screendump.vim func Test_ex_delete() new @@ -758,4 +759,19 @@ func Test_ex_address_range_overflow() call assert_fails(':--+foobar', 'E492:') endfunc +func Test_drop_modified_file() + CheckScreendump + let lines =<< trim END + call setline(1, 'The quick brown fox jumped over the lazy dogs') + END + call writefile([''], 'Xdrop_modified.txt', 'D') + call writefile(lines, 'Xtest_drop_modified', 'D') + let buf = RunVimInTerminal('-S Xtest_drop_modified Xdrop_modified.txt', {'rows': 10,'columns': 40}) + call term_sendkeys(buf, ":drop Xdrop_modified.txt\<CR>") + call VerifyScreenDump(buf, 'Test_drop_modified_1', {}) + + " clean up + call StopVimInTerminal(buf) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |