From e8b4fc53fc1d9ddd1c1faca45bc41fc9ff750278 Mon Sep 17 00:00:00 2001 From: Douglas Schneider Date: Mon, 19 May 2014 21:28:02 -0600 Subject: 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 --- src/nvim/ex_cmds.c | 5 ++++- src/nvim/version.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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, -- cgit