Mercurial > vim
diff src/drawline.c @ 20905:802bf80bcfe4 v8.2.1004
patch 8.2.1004: line numbers below filler lines not always updated
Commit: https://github.com/vim/vim/commit/511feec6f0a9e954f1d7353425fa51232b1a8e88
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 18 19:15:27 2020 +0200
patch 8.2.1004: line numbers below filler lines not always updated
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 18 Jun 2020 19:30:04 +0200 |
parents | c4bce986c31a |
children | ca2e18364888 |
line wrap: on
line diff
--- 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);