mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
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)
e7f05a8780
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local Screen = require('test.functional.ui.screen')
|
||||
local clear = helpers.clear
|
||||
local exec_lua = helpers.exec_lua
|
||||
local meths = helpers.meths
|
||||
@@ -42,4 +43,31 @@ describe('put', function()
|
||||
bwipe!
|
||||
]]
|
||||
end)
|
||||
|
||||
-- oldtest: Test_put_other_window()
|
||||
it('above topline in buffer in two splits', function()
|
||||
local screen = Screen.new(80, 10)
|
||||
screen:attach()
|
||||
source([[
|
||||
40vsplit
|
||||
0put ='some text at the top'
|
||||
put =' one more text'
|
||||
put =' two more text'
|
||||
put =' three more text'
|
||||
put =' four more text'
|
||||
]])
|
||||
|
||||
screen:expect([[
|
||||
some text at the top │some text at the top |
|
||||
one more text │ one more text |
|
||||
two more text │ two more text |
|
||||
three more text │ three more text |
|
||||
^four more text │ four more text |
|
||||
│ |
|
||||
~ │~ |
|
||||
~ │~ |
|
||||
[No Name] [+] [No Name] [+] |
|
||||
|
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user