]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0540: Unused assignment in sign_define_cmd() v9.1.0540
authorzeertzjq <zeertzjq@outlook.com>
Sun, 7 Jul 2024 18:33:46 +0000 (20:33 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 7 Jul 2024 18:33:46 +0000 (20:33 +0200)
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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/sign.txt
src/sign.c
src/version.c

index 84b2977293a5e5bbd5b5d45959b3276b29586607..679099cfc30406398637c6d018f20d02f615d7d3 100644 (file)
@@ -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
index 1ae714d9a17b69105d4553fd195687748a008ab0..b1f496c38889cd75106d593ece0d2459e31b3dbc 100644 (file)
@@ -1390,7 +1390,6 @@ sign_define_cmd(char_u *sign_name, char_u *cmdline)
        {
            arg += 9;
            prio = atoi((char *)arg);
-           arg = skiptowhite(arg);
        }
        else
        {
index 456f2d67c129cae2a1f80c6e42efb359ecbbc238..da584b9af29524d7fa696da8a2ec6f2cccdaf55a 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    540,
 /**/
     539,
 /**/