diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-01-15 07:47:13 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-15 07:47:13 +0800 |
commit | 147f65373ecb5a5582d4cc0eb41ebc9a303181cc (patch) | |
tree | e1060a64552437c28d51ebcd7c806525441b8edc /src/nvim/testdir | |
parent | 574a5822023939d534d922eaa345bb7e0633d2b8 (diff) | |
download | rneovim-147f65373ecb5a5582d4cc0eb41ebc9a303181cc.tar.gz rneovim-147f65373ecb5a5582d4cc0eb41ebc9a303181cc.tar.bz2 rneovim-147f65373ecb5a5582d4cc0eb41ebc9a303181cc.zip |
vim-patch:8.2.4091: virtcol is recomputed for statusline unnecessarily
Problem: Virtcol is recomputed for statusline unnecessarily.
Solution: Just use "w_virtcol". (closes vim/vim#9523)
https://github.com/vim/vim/commit/0f112052acaeffd75b7eb001eeb8a246ad12a276
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_statusline.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_statusline.vim b/src/nvim/testdir/test_statusline.vim index a3e4dcdd25..f40c9ae097 100644 --- a/src/nvim/testdir/test_statusline.vim +++ b/src/nvim/testdir/test_statusline.vim @@ -186,7 +186,16 @@ func Test_statusline() set virtualedit=all norm 10| call assert_match('^10,-10\s*$', s:get_statusline()) + set list + call assert_match('^10,-10\s*$', s:get_statusline()) set virtualedit& + exe "norm A\<Tab>\<Tab>a\<Esc>" + " In list mode a <Tab> is shown as "^I", which is 2-wide. + call assert_match('^9,-9\s*$', s:get_statusline()) + set list& + " Now the second <Tab> ends at the 16th screen column. + call assert_match('^17,-17\s*$', s:get_statusline()) + undo " %w: Preview window flag, text is "[Preview]". " %W: Preview window flag, text is ",PRV". |