patch 9.1.0540: Unused assignment in sign_define_cmd()

Commit: 
https://github.com/vim/vim/commit/fc3f5dba52099d82ccc8bfe309d58a6fac01373d
Author: zeertzjq <zeert...@outlook.com>
Date:   Sun Jul 7 20:33:46 2024 +0200

    patch 9.1.0540: Unused assignment in sign_define_cmd()
    
    Problem:  Unused assignment in sign_define_cmd()
    Solution: Remove the assignment.  Also document the "priority" flag of
              sign_define(). (zeertzjq)
    
    closes: #15169
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt
index 84b297729..679099cfc 100644
--- a/runtime/doc/sign.txt
+++ b/runtime/doc/sign.txt
@@ -1,4 +1,4 @@
-*sign.txt*      For Vim version 9.1.  Last change: 2024 Jul 06
+*sign.txt*      For Vim version 9.1.  Last change: 2024 Jul 07
 
 
                  VIM REFERENCE MANUAL    by Gordon Prieur
@@ -404,6 +404,7 @@ sign_define({list})
                   icon         full path to the bitmap file for the sign.
                   linehl       highlight group used for the whole line the
                                sign is placed in.
+                  priority     default priority value of the sign
                   numhl        highlight group used for the line number where
                                the sign is placed.
                   text         text that is displayed when there is no icon
diff --git a/src/sign.c b/src/sign.c
index 1ae714d9a..b1f496c38 100644
--- a/src/sign.c
+++ b/src/sign.c
@@ -1390,7 +1390,6 @@ sign_define_cmd(char_u *sign_name, char_u *cmdline)
        {
            arg += 9;
            prio = atoi((char *)arg);
-           arg = skiptowhite(arg);
        }
        else
        {
diff --git a/src/version.c b/src/version.c
index 456f2d67c..da584b9af 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    540,
 /**/
     539,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sQWsj-0099j5-0A%40256bit.org.

Raspunde prin e-mail lui