diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-27 02:54:51 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-02 13:11:47 +0200 |
commit | 72c525d5675bc017fa52bcc74a394db7d01e6359 (patch) | |
tree | 94c69643a2bccc47af5ab6034482019d952b98a1 /test/functional | |
parent | 6146400605af93ac48dae4393569c44e8a2e39d2 (diff) | |
download | rneovim-72c525d5675bc017fa52bcc74a394db7d01e6359.tar.gz rneovim-72c525d5675bc017fa52bcc74a394db7d01e6359.tar.bz2 rneovim-72c525d5675bc017fa52bcc74a394db7d01e6359.zip |
vim-patch:9.0.0758: "precedes" from 'listchars' overwritten by <<<
Problem: "precedes" from 'listchars' overwritten by <<< for 'smoothscroll'.
Solution: Keep the "precedes" character.
https://github.com/vim/vim/commit/13cdde39520220bb856cba16626327c706752b51
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/legacy/scroll_opt_spec.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua index 5e54470bd4..b5a571d8b5 100644 --- a/test/functional/legacy/scroll_opt_spec.lua +++ b/test/functional/legacy/scroll_opt_spec.lua @@ -294,6 +294,38 @@ describe('smoothscroll', function() ]]) end) + -- oldtest: Test_smoothscroll_list() + it("works with list mode", function() + screen:try_resize(40, 8) + exec([[ + set smoothscroll scrolloff=0 + set list + call setline(1, [ 'one', 'very long text '->repeat(12), 'three', ]) + exe "normal 2Gzt\<C-E>" + ]]) + screen:expect([[ + <<<t very long text very long text very | + ^long text very long text very long text | + very long text very long text very long | + text very long text- | + three | + ~ | + ~ | + | + ]]) + exec('set listchars+=precedes:#') + screen:expect([[ + #ext very long text very long text very | + ^long text very long text very long text | + very long text very long text very long | + text very long text- | + three | + ~ | + ~ | + | + ]]) + end) + -- oldtest: Test_smoothscroll_diff_mode() it("works with diff mode", function() screen:try_resize(40, 8) |