diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-06 17:33:42 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-07 00:38:40 +0200 |
commit | 3b2bd8d69e6c0a173562778fae6ece67d9adf52c (patch) | |
tree | d7e98e5fa43f9cb16809ae5eac1d441fd176e1f6 /test/functional/legacy/scroll_opt_spec.lua | |
parent | ca5a810c4a67c9c3f482d0c015270c26aee2c943 (diff) | |
download | rneovim-3b2bd8d69e6c0a173562778fae6ece67d9adf52c.tar.gz rneovim-3b2bd8d69e6c0a173562778fae6ece67d9adf52c.tar.bz2 rneovim-3b2bd8d69e6c0a173562778fae6ece67d9adf52c.zip |
vim-patch:9.0.1512: inserting lines when scrolling with 'smoothscroll' set
Problem: Inserting lines when scrolling with 'smoothscroll' set.
Solution: Adjust line height computation for w_skipcol. (Luuk van Baal,
closes vim/vim#12350)
https://github.com/vim/vim/commit/c8502f9b880b6d23baa4f9d28b60e1ceb442e35f
Diffstat (limited to 'test/functional/legacy/scroll_opt_spec.lua')
-rw-r--r-- | test/functional/legacy/scroll_opt_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua index 8af23d2c26..c3c99b506b 100644 --- a/test/functional/legacy/scroll_opt_spec.lua +++ b/test/functional/legacy/scroll_opt_spec.lua @@ -695,6 +695,30 @@ describe('smoothscroll', function() ]]) end) + -- oldtest: Test_smoothscroll_ins_lines() + it("this was unnecessarily inserting lines", function() + screen:try_resize(40, 6) + exec([=[ + set wrap smoothscroll scrolloff=0 conceallevel=2 concealcursor=nc + call setline(1, [ + \'line one' .. 'with lots of text in one line '->repeat(2), + \'line two', + \'line three', + \'line four', + \'line five' + \]) + ]=]) + feed('<C-E>gjgk') + screen:expect([[ + <<<lots of text in one line^ | + line two | + line three | + line four | + line five | + | + ]]) + end) + it("works with virt_lines above and below", function() screen:try_resize(55, 7) exec([=[ |