aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-01-09 21:26:49 +0100
committerGitHub <noreply@github.com>2019-01-09 21:26:49 +0100
commit1ca2c8950fe33654f046183516a123fe0606b4e8 (patch)
treebbe7941a6f21569cace8fb414892299f0b60e277 /src/nvim/ex_cmds.c
parent8510d5ff865f41e5025943a1c804d2d1e65f0663 (diff)
parentd5d8deec06aa0afb6a27b231cf5b395296a76f24 (diff)
downloadrneovim-1ca2c8950fe33654f046183516a123fe0606b4e8.tar.gz
rneovim-1ca2c8950fe33654f046183516a123fe0606b4e8.tar.bz2
rneovim-1ca2c8950fe33654f046183516a123fe0606b4e8.zip
Merge pull request #9479 from bfredl/redrawsign
screen: remove ad-hoc code path for redrawing signs.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 0067445b38..85844c37bd 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -5759,7 +5759,7 @@ void ex_sign(exarg_T *eap)
id = buf_findsign_id(curwin->w_buffer, curwin->w_cursor.lnum);
if (id > 0) {
buf_delsign(curwin->w_buffer, id);
- update_debug_sign(curwin->w_buffer, curwin->w_cursor.lnum);
+ redraw_buf_line_later(curwin->w_buffer, curwin->w_cursor.lnum);
} else {
EMSG(_("E159: Missing sign number"));
}
@@ -5788,7 +5788,7 @@ void ex_sign(exarg_T *eap)
// ":sign unplace {id}": remove placed sign by number
FOR_ALL_BUFFERS(buf) {
if ((lnum = buf_delsign(buf, id)) != 0) {
- update_debug_sign(buf, lnum);
+ redraw_buf_line_later(buf, lnum);
}
}
return;
@@ -5888,7 +5888,7 @@ void ex_sign(exarg_T *eap)
} else {
// ":sign unplace {id} file={fname}"
lnum = buf_delsign(buf, id);
- update_debug_sign(buf, lnum);
+ redraw_buf_line_later(buf, lnum);
}
} else if (sign_name != NULL) {
// idx == SIGNCMD_PLACE
@@ -5910,7 +5910,7 @@ void ex_sign(exarg_T *eap)
lnum = buf_change_sign_type(buf, id, sp->sn_typenr);
}
if (lnum > 0) {
- update_debug_sign(buf, lnum);
+ redraw_buf_line_later(buf, lnum);
} else {
EMSG2(_("E885: Not possible to change sign %s"), sign_name);
}