aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-10-28 17:54:29 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-10-28 17:55:11 +0200
commitbcf266de46b054b564727d5d31e4421ba09f5704 (patch)
treec3d99f6a5f21129d4c27514ae81cecfc08586e45 /src
parentb8a67551d8360ba095d1ffdbc9f8c40b612e9320 (diff)
downloadrneovim-bcf266de46b054b564727d5d31e4421ba09f5704.tar.gz
rneovim-bcf266de46b054b564727d5d31e4421ba09f5704.tar.bz2
rneovim-bcf266de46b054b564727d5d31e4421ba09f5704.zip
test: :terminal + numberwidth=9
Diffstat (limited to 'src')
-rw-r--r--src/nvim/screen.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 28b85dcc5f..38ecd88ec0 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -698,12 +698,12 @@ static void win_update(win_T *wp)
(uint16_t)(MAX(0, curwin->w_width - win_col_off(curwin))),
(uint16_t)curwin->w_height);
}
- } else if (buf->b_mod_set && buf->b_mod_xlines != 0 && wp->w_redraw_top != 0) {
- /*
- * When there are both inserted/deleted lines and specific lines to be
- * redrawn, w_redraw_top and w_redraw_bot may be invalid, just redraw
- * everything (only happens when redrawing is off for while).
- */
+ } else if (buf->b_mod_set
+ && buf->b_mod_xlines != 0
+ && wp->w_redraw_top != 0) {
+ // When there are both inserted/deleted lines and specific lines to be
+ // redrawn, w_redraw_top and w_redraw_bot may be invalid, just redraw
+ // everything (only happens when redrawing is off for while).
type = NOT_VALID;
} else {
/*