aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-10-20 16:17:51 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-10-20 16:17:51 -0400
commit56339036a741cb5ae8681bf73aec8f8d24cb1786 (patch)
tree0609be72b9d2c1c897ffa7b55c39b86802d40291 /src
parent6c78fd1a641bd8e15645f42a97512a0a128377e1 (diff)
parent9097b69088d250ddb62ae47ec96b68eaef6090cd (diff)
downloadrneovim-56339036a741cb5ae8681bf73aec8f8d24cb1786.tar.gz
rneovim-56339036a741cb5ae8681bf73aec8f8d24cb1786.tar.bz2
rneovim-56339036a741cb5ae8681bf73aec8f8d24cb1786.zip
Merge pull request #1311 from GokuITA/issue1295
Fixed sign column redraw
Diffstat (limited to 'src')
-rw-r--r--src/nvim/buffer.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 6ce3c77c66..b76bad67f6 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -4423,8 +4423,8 @@ linenr_T buf_delsign(
}
/* When deleted the last sign needs to redraw the windows to remove the
- * sign column. Not when curwin is NULL (this means we're exiting). */
- if (buf->b_signlist != NULL && curwin != NULL) {
+ * sign column. */
+ if (buf->b_signlist == NULL) {
redraw_buf_later(buf, NOT_VALID);
changed_cline_bef_curs();
}
@@ -4479,11 +4479,9 @@ void buf_delete_signs(buf_T *buf)
signlist_T *next;
// When deleting the last sign need to redraw the windows to remove the
- // sign column.
- if (buf->b_signlist != NULL) {
+ // sign column. Not when curwin is NULL (this means we're exiting).
+ if (buf->b_signlist != NULL && curwin != NULL){
redraw_buf_later(buf, NOT_VALID);
- // TODO(oni-link): Is this call necessary if curwin is not a viewport
- // for buf?
changed_cline_bef_curs();
}