summaryrefslogtreecommitdiff
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-18 19:15:27 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-18 19:15:27 +0200
commit511feec6f0a9e954f1d7353425fa51232b1a8e88 (patch)
tree527fe7b68d9f38926ec85f5f440685a60c2f26e7 /src/drawline.c
parent865af6b990f058fab10c9ff10c77eb0e3bd48ad5 (diff)
downloadvim-git-511feec6f0a9e954f1d7353425fa51232b1a8e88.tar.gz
patch 8.2.1004: line numbers below filler lines not always updatedv8.2.1004
Problem: Line numbers below filler lines not always updated. Solution: Don't break out of the win_line() loop too early. (Christian Brabandt, closes #6294, closes #6138)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 9d65aa43e..6d14bda7b 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1287,13 +1287,13 @@ win_line(
// When still displaying '$' of change command, stop at cursor.
// When only displaying the (relative) line number and that's done,
// stop here.
- if ((dollar_vcol >= 0 && wp == curwin
- && lnum == wp->w_cursor.lnum && vcol >= (long)wp->w_virtcol
+ if (((dollar_vcol >= 0 && wp == curwin
+ && lnum == wp->w_cursor.lnum && vcol >= (long)wp->w_virtcol)
+ || (number_only && draw_state > WL_NR))
#ifdef FEAT_DIFF
&& filler_todo <= 0
#endif
)
- || (number_only && draw_state > WL_NR))
{
screen_line(screen_row, wp->w_wincol, col, -(int)wp->w_width,
screen_line_flags);