diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-01 14:42:30 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-02 13:11:47 +0200 |
commit | 3b906af27fbd27a148ed6ca66e79b273ba5e8521 (patch) | |
tree | 7d8f88eeaf0a1fd4e9905d3eb57d185e4184eff3 | |
parent | 3b1d31197c7af4d87f7e693a1702b5330411f5aa (diff) | |
download | rneovim-3b906af27fbd27a148ed6ca66e79b273ba5e8521.tar.gz rneovim-3b906af27fbd27a148ed6ca66e79b273ba5e8521.tar.bz2 rneovim-3b906af27fbd27a148ed6ca66e79b273ba5e8521.zip |
test: 'smoothscroll' <<< marker shows with tabline, winbar and splits
-rw-r--r-- | test/functional/legacy/scroll_opt_spec.lua | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua index 253b20df5c..b00ff0bc7a 100644 --- a/test/functional/legacy/scroll_opt_spec.lua +++ b/test/functional/legacy/scroll_opt_spec.lua @@ -719,4 +719,59 @@ describe('smoothscroll', function() | ]]) end) + + it('<<< marker shows with tabline, winbar and splits', function() + screen:try_resize(40, 12) + exec([[ + call setline(1, ['Line' .. (' with some text'->repeat(7))]->repeat(7)) + set smoothscroll scrolloff=0 + norm sj + ]]) + screen:expect([[ + <<<e text with some text with some text | + with some text with some text | + Line with some text with some text with | + some text with some text with some text | + with some text with some text | + [No Name] [+] | + <<<e text with some text with some text | + ^with some text with some text | + Line with some text with some text with | + some text with some text with some te@@@| + [No Name] [+] | + | + ]]) + exec('set showtabline=2') + feed('<C-E>') + screen:expect([[ + 2+ [No Name] | + <<<e text with some text with some text | + with some text with some text | + Line with some text with some text with | + some text with some text with some text | + with some text with some text | + [No Name] [+] | + <<<e text with some text with some text | + ^with some text with some text | + Line with some text with some text wi@@@| + [No Name] [+] | + | + ]]) + exec('set winbar=winbar') + feed('<C-w>k<C-E>') + screen:expect([[ + 2+ [No Name] | + winbar | + <<<e text with some text with some text | + ^with some text with some text | + Line with some text with some text with | + some text with some text with some te@@@| + [No Name] [+] | + winbar | + <<<e text with some text with some text | + with some text with some text | + [No Name] [+] | + | + ]]) + end) end) |