diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-05-07 14:38:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-05-07 14:38:44 +0200 |
commit | f4d7f167f3c1e26f26c4b5905db553eb94aa9e81 (patch) | |
tree | 9c4ca1373bad098e5af61cc2333f119ce083562c | |
parent | a7611f60cde29639b655ddb4494b98886c318870 (diff) |
updated for version 7.4.275v7.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)
-rw-r--r-- | src/ex_cmds.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index f6643aed69..48700f0034 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)); diff --git a/src/version.c b/src/version.c index 3356879fdb..95daaed4b1 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 275, +/**/ 274, /**/ 273, |