aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Schneider <ds3@ualberta.ca>2014-05-19 21:28:02 -0600
committerJustin M. Keyes <justinkz@gmail.com>2014-06-04 07:12:46 +0000
commite8b4fc53fc1d9ddd1c1faca45bc41fc9ff750278 (patch)
tree5bf485e9edca845f79821a9de8dc8cf7888c3ffb
parentd5c2cee1b7aa4847b1e5269a0fa96a0114304aa1 (diff)
downloadrneovim-e8b4fc53fc1d9ddd1c1faca45bc41fc9ff750278.tar.gz
rneovim-e8b4fc53fc1d9ddd1c1faca45bc41fc9ff750278.tar.bz2
rneovim-e8b4fc53fc1d9ddd1c1faca45bc41fc9ff750278.zip
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
-rw-r--r--src/nvim/ex_cmds.c5
-rw-r--r--src/nvim/version.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 2d62d1bc71..576847c7b9 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -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));
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 6354306a08..40ba96c758 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -212,7 +212,7 @@ static int included_patches[] = {
//278,
277,
//276,
- //275,
+ 275,
274,
//273,
272,