diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-10-27 13:29:44 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-10-28 23:12:41 -0400 |
commit | 250298884bb0c86847131cb872dcc9865115f8eb (patch) | |
tree | bb13b201a2934a8a5a3bb60f3f1025fbf2707ac9 /src | |
parent | 94f59fc9be03cf0ee3ac20f2715738f017439502 (diff) | |
download | rneovim-250298884bb0c86847131cb872dcc9865115f8eb.tar.gz rneovim-250298884bb0c86847131cb872dcc9865115f8eb.tar.bz2 rneovim-250298884bb0c86847131cb872dcc9865115f8eb.zip |
fix 'sign unplace id'
Since the introduction of the FOR_ALL_BUFFERS macro, 'sign unplace id'
without a buffer was only removing the sign from the first buffer rather
than all buffers, as described in the documentation.
:help sign-unplace
--
modeline discussion: https://github.com/akkartik/neovim/commit/7863c247db#commitcomment-8342590
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 5db950f120..f5fa16a139 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5908,12 +5908,13 @@ void ex_sign(exarg_T *eap) arg = skipwhite(arg); if (idx == SIGNCMD_UNPLACE && *arg == NUL) { - /* ":sign unplace {id}": remove placed sign by number */ - FOR_ALL_BUFFERS(buf) { - if ((lnum = buf_delsign(buf, id)) != 0) - update_debug_sign(buf, lnum); - return; - } + // ":sign unplace {id}": remove placed sign by number + FOR_ALL_BUFFERS(buf) { + if ((lnum = buf_delsign(buf, id)) != 0) { + update_debug_sign(buf, lnum); + } + } + return; } } } @@ -5923,7 +5924,7 @@ void ex_sign(exarg_T *eap) * Leave "arg" pointing to {fname}. */ - buf_T *buf = NULL; + buf_T *buf = NULL; for (;;) { if (STRNCMP(arg, "line=", 5) == 0) @@ -6343,3 +6344,4 @@ void set_context_in_sign_cmd(expand_T *xp, char_u *arg) } } +// vim: tabstop=8 |