aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-11-28 05:40:18 +0100
committerLewis Russell <me@lewisr.dev>2023-11-29 10:17:15 +0000
commitf4001d27efae44c6c07678ad2c72eed5f1a25ea8 (patch)
treecbcbeb8bdccd1d56860ef94ee30f669602624611 /test/functional/ui
parent584c6c25ccfc5d13ffa0a4bd6efa467beb3987fe (diff)
downloadrneovim-f4001d27efae44c6c07678ad2c72eed5f1a25ea8.tar.gz
rneovim-f4001d27efae44c6c07678ad2c72eed5f1a25ea8.tar.bz2
rneovim-f4001d27efae44c6c07678ad2c72eed5f1a25ea8.zip
perf(column): only invalidate lines affected by added sign
Diffstat (limited to 'test/functional/ui')
-rw-r--r--test/functional/ui/sign_spec.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/functional/ui/sign_spec.lua b/test/functional/ui/sign_spec.lua
index adab184a4c..b12e79bd42 100644
--- a/test/functional/ui/sign_spec.lua
+++ b/test/functional/ui/sign_spec.lua
@@ -467,6 +467,27 @@ describe('Signs', function()
{0:~ }|
|
]])
+ -- should not increase size because sign with existing id is moved
+ command('sign place 4 line=1 name=pietSearch buffer=1')
+ screen:expect_unchanged()
+ command('sign unplace 4')
+ screen:expect([[
+ {1:>>>>>>}{6: 1 }a |
+ {2: }{6: 2 }b |
+ {2: }{6: 3 }c |
+ {2: }{6: 4 }^ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ |
+ ]])
+ command('sign place 4 line=1 name=pietSearch buffer=1')
-- should keep the column at maximum size when signs are
-- exceeding the maximum
command('sign place 5 line=1 name=pietSearch buffer=1')