diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-07 07:04:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 07:04:49 +0800 |
commit | 408a7c2dac2d0d305cb59350cb44ca0864087657 (patch) | |
tree | 41669bcc6b033b7a0a8a47ced20690782a1dffbd /test/functional/legacy/window_cmd_spec.lua | |
parent | 1bf29a0ae1fffee8a009dfbc8da2d7c048f6eb20 (diff) | |
parent | 8e74569d7ee170b8661bdc74d61cf6be95303060 (diff) | |
download | rneovim-408a7c2dac2d0d305cb59350cb44ca0864087657.tar.gz rneovim-408a7c2dac2d0d305cb59350cb44ca0864087657.tar.bz2 rneovim-408a7c2dac2d0d305cb59350cb44ca0864087657.zip |
Merge pull request #23510 from luukvbaal/smoothscroll
vim-patch:9.0.{1512,1513}
Diffstat (limited to 'test/functional/legacy/window_cmd_spec.lua')
-rw-r--r-- | test/functional/legacy/window_cmd_spec.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/functional/legacy/window_cmd_spec.lua b/test/functional/legacy/window_cmd_spec.lua index 3a51f7a23f..373a9c7163 100644 --- a/test/functional/legacy/window_cmd_spec.lua +++ b/test/functional/legacy/window_cmd_spec.lua @@ -254,4 +254,29 @@ describe('splitkeep', function() | ]]) end) + + -- oldtest: Test_splitkeep_skipcol() + it('skipcol is not reset unnecessarily and is copied to new window', function() + screen:try_resize(40, 12) + exec([[ + set splitkeep=topline smoothscroll splitbelow scrolloff=0 + call setline(1, 'with lots of text in one line '->repeat(6)) + norm 2 + wincmd s + ]]) + screen:expect([[ + <<<e line with lots of text in one line | + with lots of text in one line with lots | + of text in one line | + ~ | + [No Name] [+] | + <<<e line with lots of text in one line | + ^with lots of text in one line with lots | + of text in one line | + ~ | + ~ | + [No Name] [+] | + | + ]]) + end) end) |