Mercurial > vim
changeset 5865:8a3117a4887c v7.4.275
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 07 May 2014 14:38:44 +0200 |
parents | 075eea398fff |
children | 82fb215489fe |
files | src/ex_cmds.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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));