mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #1311 from GokuITA/issue1295
Fixed sign column redraw
This commit is contained in:
commit
56339036a7
@ -4423,8 +4423,8 @@ linenr_T buf_delsign(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* When deleted the last sign needs to redraw the windows to remove the
|
/* 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). */
|
* sign column. */
|
||||||
if (buf->b_signlist != NULL && curwin != NULL) {
|
if (buf->b_signlist == NULL) {
|
||||||
redraw_buf_later(buf, NOT_VALID);
|
redraw_buf_later(buf, NOT_VALID);
|
||||||
changed_cline_bef_curs();
|
changed_cline_bef_curs();
|
||||||
}
|
}
|
||||||
@ -4479,11 +4479,9 @@ void buf_delete_signs(buf_T *buf)
|
|||||||
signlist_T *next;
|
signlist_T *next;
|
||||||
|
|
||||||
// When deleting the last sign need to redraw the windows to remove the
|
// When deleting the last sign need to redraw the windows to remove the
|
||||||
// sign column.
|
// sign column. Not when curwin is NULL (this means we're exiting).
|
||||||
if (buf->b_signlist != NULL) {
|
if (buf->b_signlist != NULL && curwin != NULL){
|
||||||
redraw_buf_later(buf, NOT_VALID);
|
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();
|
changed_cline_bef_curs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user