diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-19 16:14:41 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-19 18:42:23 +0200 |
commit | 02ef104d5bcd40c048e8011e0106f30389034674 (patch) | |
tree | 5ba08df6ef84cc955a38a552a8d77d9aad0214c8 /test/functional/legacy | |
parent | 4c05b1a6ab32880bcc556cf4bf67f1f3edf0c480 (diff) | |
download | rneovim-02ef104d5bcd40c048e8011e0106f30389034674.tar.gz rneovim-02ef104d5bcd40c048e8011e0106f30389034674.tar.bz2 rneovim-02ef104d5bcd40c048e8011e0106f30389034674.zip |
vim-patch:9.0.1564: display moves up and down with 'incsearch' and 'smoothscroll'
Problem: Display moves up and down with 'incsearch' and 'smoothscroll'.
Solution: Do not check if w_skipcol changed. (Luuk van Baal, closes vim/vim#12410,
closes vim/vim#12409)
https://github.com/vim/vim/commit/0222c2d103ad9298bec4dc8864cd80b4e7559db1
Diffstat (limited to 'test/functional/legacy')
-rw-r--r-- | test/functional/legacy/scroll_opt_spec.lua | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua index 838ada4006..056262939b 100644 --- a/test/functional/legacy/scroll_opt_spec.lua +++ b/test/functional/legacy/scroll_opt_spec.lua @@ -422,12 +422,41 @@ describe('smoothscroll', function() | ]]) feed('j') - screen:expect_unchanged() + screen:expect([[ + Line with some text with some text with | + some 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 | + @ | + | + ]]) -- moving cursor down - whole bottom line shows feed('<C-E>j') - screen:expect_unchanged() + screen:expect([[ + <<<h 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 | + ^Line with some text with some text with | + some text with some text with some text | + with some text with some text | + | + ]]) feed('G') - screen:expect_unchanged() + -- FIXME: different from vim onwards, this had in incorrect cursor position + -- in vim but we show an eob line. + screen:expect([[ + <<<h 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 | + Line with some text with some text with | + some text with some text with some text | + ^with some text with some text | + | + ]]) -- moving cursor up right after the >>> marker - no need to show whole line feed('2gj3l2k') screen:expect([[ |