summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index f6643aed6..48700f003 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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));