diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-27 03:36:31 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-02 13:11:47 +0200 |
commit | 88d13d2778a4fab3fdcc2bf4c1adf631b38ea3ce (patch) | |
tree | 6a412cb67c8da4425d325a1ca704976f8d273b15 /test | |
parent | 0588329c8569553e3232e72889a28496a30aa54b (diff) | |
download | rneovim-88d13d2778a4fab3fdcc2bf4c1adf631b38ea3ce.tar.gz rneovim-88d13d2778a4fab3fdcc2bf4c1adf631b38ea3ce.tar.bz2 rneovim-88d13d2778a4fab3fdcc2bf4c1adf631b38ea3ce.zip |
vim-patch:9.0.0807: with 'smoothscroll' typing "0" may not go to the first column
Problem: With 'smoothscroll' typing "0" may not go to the first column.
Solution: Recompute w_cline_height when needed. Do not scroll up when it
would move the cursor.
https://github.com/vim/vim/commit/d5337efece7c68e9b4ce864532ea49b02453b674
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/scroll_opt_spec.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua index b5a571d8b5..42d8f31d3c 100644 --- a/test/functional/legacy/scroll_opt_spec.lua +++ b/test/functional/legacy/scroll_opt_spec.lua @@ -482,7 +482,14 @@ describe('smoothscroll', function() ]]) -- 'scrolloff' set to 2, scrolling down, cursor moves screen line up feed('<C-E>gj<C-Y>') - screen:expect_unchanged() + screen:expect([[ + <<<ots of text with lots of text with lo| + ts of text with lots of text with lots o| + f text wi^th lots of text with lots of te| + xt with lots of text with lots of text w| + ith lots of text with lots of text with | + | + ]]) end) -- oldtest: Test_smoothscroll_one_long_line() |