aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-07 23:26:03 +0800
committerGitHub <noreply@github.com>2022-04-07 23:26:03 +0800
commit1edca3872e7c80a5396b84ffddb879cc18633d56 (patch)
treed7aa63433f5ec81b7fe113812fbb207b9c95bdc8 /test/functional/ui/highlight_spec.lua
parentabc157a6fd5ed2f09271ee3dd75d23d9ec3e0313 (diff)
downloadrneovim-1edca3872e7c80a5396b84ffddb879cc18633d56.tar.gz
rneovim-1edca3872e7c80a5396b84ffddb879cc18633d56.tar.bz2
rneovim-1edca3872e7c80a5396b84ffddb879cc18633d56.zip
vim-patch:8.2.4707: redrawing could be a bit more efficient (#18022)
Problem: Redrawing could be a bit more efficient. Solution: Optimize redrawing. (closes vim/vim#10105) https://github.com/vim/vim/commit/8c9796085071950f9a03ca0fe116608e4f86aac2
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 4b63b09a5b..8afc69a649 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -1345,6 +1345,28 @@ describe('CursorColumn highlight', function()
{2:~ }|
{3:-- INSERT --} |
]])
+ feed('<C-O>')
+ screen:expect([[
+ 1234567{1:8}9 |
+ a ^ b |
+ {2:~ }|
+ {2:~ }|
+ {2:~ }|
+ {2:~ }|
+ {2:~ }|
+ {3:-- (insert) --} |
+ ]])
+ feed('i')
+ screen:expect([[
+ 1{1:2}3456789 |
+ a^ b |
+ {2:~ }|
+ {2:~ }|
+ {2:~ }|
+ {2:~ }|
+ {2:~ }|
+ {3:-- INSERT --} |
+ ]])
end)
it('is updated if cursor is moved from timer', function()