vim-patch: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)

Author: Bram Moolenaar

https://code.google.com/p/vim/source/detail?r=8a3117a4887c1e12a1165c9719491f96753
This commit is contained in:
Douglas Schneider
2014-05-19 21:28:02 -06:00
committed by Justin M. Keyes
parent d5c2cee1b7
commit e8b4fc53fc
2 changed files with 5 additions and 2 deletions

View File

@@ -6026,7 +6026,10 @@ void ex_sign(exarg_T *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));

View File

@@ -212,7 +212,7 @@ static int included_patches[] = {
//278,
277,
//276,
//275,
275,
274,
//273,
272,