aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-09-14 19:51:11 +0800
committerGitHub <noreply@github.com>2024-09-14 19:51:11 +0800
commit3b54adc6c6d25dd146fa1eac21321f6bd612f50a (patch)
tree187895fa1ba7aa4e61ff17da16251d8b1bfa89fe /test/functional/ui
parent325d349f9da4518447ed34b327c261bfa56fc268 (diff)
parent5191a11d66b925561b5f705aa42759a0e2a5624a (diff)
downloadrneovim-3b54adc6c6d25dd146fa1eac21321f6bd612f50a.tar.gz
rneovim-3b54adc6c6d25dd146fa1eac21321f6bd612f50a.tar.bz2
rneovim-3b54adc6c6d25dd146fa1eac21321f6bd612f50a.zip
Merge pull request #30378 from zeertzjq/vim-9.1.0729
vim-patch:9.1.{0729,0730}
Diffstat (limited to 'test/functional/ui')
-rw-r--r--test/functional/ui/highlight_spec.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index b7b46ddfae..277bd96bd8 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -1078,6 +1078,44 @@ describe('CursorLine and CursorLineNr highlights', function()
]])
end)
+ -- oldtest: Test_cursorline_screenline_resize()
+ it("'cursorlineopt' screenline is updated on window resize", function()
+ local screen = Screen.new(75, 8)
+ screen:attach()
+ exec([[
+ 50vnew
+ call setline(1, repeat('xyz ', 30))
+ setlocal number cursorline cursorlineopt=screenline
+ normal! $
+ ]])
+ screen:expect([[
+ {8: 1 }xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xy│ |
+ {8: }z xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz │{1:~ }|
+ {8: }{21:xyz xyz xyz xyz xyz xyz xyz^ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
+ {3:[No Name] [+] }{2:[No Name] }|
+ |
+ ]])
+ command('vertical resize -4')
+ screen:expect([[
+ {8: 1 }xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xy│ |
+ {8: }z xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz │{1:~ }|
+ {8: }{21:xyz xyz xyz xyz xyz xyz xyz xyz xyz^ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
+ {3:[No Name] [+] }{2:[No Name] }|
+ |
+ ]])
+ command('set cpoptions+=n')
+ screen:expect([[
+ {8: 1 }xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xy│ |
+ z xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz xyz │{1:~ }|
+ {21:xyz xyz xyz xyz xyz xyz xyz xyz^ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
+ {3:[No Name] [+] }{2:[No Name] }|
+ |
+ ]])
+ end)
+
-- oldtest: Test_cursorline_after_yank()
it('always updated. vim-patch:8.1.0849', function()
local screen = Screen.new(50, 5)