]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.275 v7.4.275
authorBram Moolenaar <Bram@vim.org>
Wed, 7 May 2014 12:38:44 +0000 (14:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 7 May 2014 12:38:44 +0000 (14:38 +0200)
Problem:    When changing the type of a sign that hasn't been placed ther is
            no error message.
Solution:   Add an error message. (Christian Brabandt)

src/ex_cmds.c
src/version.c

index f6643aed69fbc8f6bb5dd7c8bf18bf74135ffd68..48700f0034cfefc8499fa48b0426f79f25681afa 100644 (file)
@@ -7275,7 +7275,10 @@ ex_sign(eap)
            else
                /* ":sign place {id} file={fname}": change sign type */
                lnum = buf_change_sign_type(buf, id, sp->sn_typenr);
-           update_debug_sign(buf, lnum);
+           if (lnum > 0)
+               update_debug_sign(buf, lnum);
+           else
+               EMSG2(_("E885: Not possible to change sign %s"), sign_name);
        }
        else
            EMSG(_(e_invarg));
index 3356879fdba411571a970482fe748c7d315d3981..95daaed4b10c4486b38e2eefc04560bb11d759aa 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    275,
 /**/
     274,
 /**/