mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
vim-patch:9.1.0538: not possible to assign priority when defining a sign (#29592)
Problem: not possible to assign priority when defining a sign
(Mathias Fußenegger)
Solution: Add the priority argument for the :sign-define ex command and
the sign_define() function (LemonBoy)
Use the specified value instead of the default one (SIGN_DEF_PRIO) when
no priority is explicitly specified in sign_place or :sign place.
fixes: vim/vim#8334
closes: vim/vim#15124
b975ddfdf9
Co-authored-by: LemonBoy <thatlemon@gmail.com>
This commit is contained in:
@@ -2920,11 +2920,12 @@ describe('builtin popupmenu', function()
|
||||
feed('<C-U>sign define <Tab>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*2
|
||||
{1:~ }|
|
||||
{1:~ }{s: culhl= }{1: }|
|
||||
{1:~ }{n: icon= }{1: }|
|
||||
{1:~ }{n: linehl= }{1: }|
|
||||
{1:~ }{n: numhl= }{1: }|
|
||||
{1:~ }{n: priority= }{1: }|
|
||||
{1:~ }{n: text= }{1: }|
|
||||
{1:~ }{n: texthl= }{1: }|
|
||||
:sign define culhl=^ |
|
||||
@@ -2933,11 +2934,12 @@ describe('builtin popupmenu', function()
|
||||
feed('<Space><Tab>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*2
|
||||
{1:~ }|
|
||||
{1:~ }{s: culhl= }{1: }|
|
||||
{1:~ }{n: icon= }{1: }|
|
||||
{1:~ }{n: linehl= }{1: }|
|
||||
{1:~ }{n: numhl= }{1: }|
|
||||
{1:~ }{n: priority= }{1: }|
|
||||
{1:~ }{n: text= }{1: }|
|
||||
{1:~ }{n: texthl= }{1: }|
|
||||
:sign define culhl= culhl=^ |
|
||||
|
||||
Reference in New Issue
Block a user