aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorTobias Schmitz <tobiasschmitz2001@gmail.com>2024-05-21 18:21:42 +0200
committerGitHub <noreply@github.com>2024-05-21 09:21:42 -0700
commitad191be65e2b1641c181506166b1037b548d14a8 (patch)
tree1490e00ce91335bd990a4b276031ca5a7a3ce4d6 /test/functional/api/vim_spec.lua
parent8263ed46706671e6a9a21cbb5f9555dd42ff8085 (diff)
downloadrneovim-ad191be65e2b1641c181506166b1037b548d14a8.tar.gz
rneovim-ad191be65e2b1641c181506166b1037b548d14a8.tar.bz2
rneovim-ad191be65e2b1641c181506166b1037b548d14a8.zip
feat(signs)!: place higher-priority signs from the left #27781
Problem: Higher-priority signs may be hidden by lower-priority signs. Solution: Place higher-priority signs from the left. Example: nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='H', priority=1}) nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='W', priority=2}) nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='E', priority=3}) Before: | | H | W E | ^ | | Not visible After: | | | E W | H | | ^ Not visible Fixes #16632
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index c56c8263d6..fd0535aa51 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -3918,13 +3918,13 @@ describe('API', function()
norm 4G
]])
eq({
- str = '││aabb 4 ',
+ str = '││bbaa 4 ',
width = 9,
highlights = {
{ group = 'CursorLineFold', start = 0 },
{ group = 'Normal', start = 6 },
- { group = 'IncSearch', start = 6 },
- { group = 'ErrorMsg', start = 8 },
+ { group = 'ErrorMsg', start = 6 },
+ { group = 'IncSearch', start = 8 },
{ group = 'Normal', start = 10 },
},
}, api.nvim_eval_statusline(