0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4.275

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)
This commit is contained in:
Bram Moolenaar
2014-05-07 14:38:44 +02:00
parent a7611f60cd
commit f4d7f167f3
2 changed files with 6 additions and 1 deletions

View 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));