diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-23 00:30:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 00:30:52 +0800 |
commit | 040d9da5c8f4d56e0482758223ea7bb04dc90cc0 (patch) | |
tree | 2bc921c0a0977805e741d1afb52c547f0a7fb95d /test/old/testdir/test_put.vim | |
parent | 1cb46abff1e903e999105b244329f22678ba8a30 (diff) | |
download | rneovim-040d9da5c8f4d56e0482758223ea7bb04dc90cc0.tar.gz rneovim-040d9da5c8f4d56e0482758223ea7bb04dc90cc0.tar.bz2 rneovim-040d9da5c8f4d56e0482758223ea7bb04dc90cc0.zip |
vim-patch:9.0.1476: lines put in non-current window are not displayed (#23265)
Problem: Lines put in non-current window are not displayed. (Marius
Gedminas)
Solution: Don't increment the topline when inserting just above it.
(closes vim/vim#12212)
https://github.com/vim/vim/commit/e7f05a8780426dc7af247419c6d02d5f1e896689
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_put.vim')
-rw-r--r-- | test/old/testdir/test_put.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/old/testdir/test_put.vim b/test/old/testdir/test_put.vim index 6c7cfa09c6..212a979b4a 100644 --- a/test/old/testdir/test_put.vim +++ b/test/old/testdir/test_put.vim @@ -1,6 +1,7 @@ " Tests for put commands, e.g. ":put", "p", "gp", "P", "gP", etc. source check.vim +source screendump.vim func Test_put_block() new @@ -246,5 +247,24 @@ func Test_put_visual_block_mode() set ve= endfunc +func Test_put_other_window() + CheckRunVimInTerminal + + let lines =<< trim END + 40vsplit + 0put ='some text at the top' + put =' one more text' + put =' two more text' + put =' three more text' + put =' four more text' + END + call writefile(lines, 'Xtest_put_other', 'D') + let buf = RunVimInTerminal('-S Xtest_put_other', #{rows: 10}) + + call VerifyScreenDump(buf, 'Test_put_other_window_1', {}) + + call StopVimInTerminal(buf) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |