diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-09-13 00:31:28 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-09-13 00:32:14 +0200 |
commit | e7a9c76ab054d67de1eaa71c60f282161e8a0aa6 (patch) | |
tree | e4eba2e14b8b79d0a87d0f6e67afbd06c2be7009 | |
parent | 656648d8557d7a495775b2de565a96275549a4c9 (diff) | |
download | rneovim-e7a9c76ab054d67de1eaa71c60f282161e8a0aa6.tar.gz rneovim-e7a9c76ab054d67de1eaa71c60f282161e8a0aa6.tar.bz2 rneovim-e7a9c76ab054d67de1eaa71c60f282161e8a0aa6.zip |
vim-patch:8.1.0373: screen updating still slow when 'cursorline' is set
Problem: Screen updating still slow when 'cursorline' is set.
Solution: Fix setting last_cursorline.
https://github.com/vim/vim/commit/1b7fefcbce5dd2fd337e217d4857b941da3f8bed
-rw-r--r-- | src/nvim/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index be7a8f43ec..9dccca092a 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -110,11 +110,11 @@ static void redraw_for_cursorline(win_T *wp) // in the same window. redrawWinline(wp, last_cursorline, false); redrawWinline(wp, wp->w_cursor.lnum, false); - last_cursorline = wp->w_cursor.lnum; redraw_win_later(wp, VALID); } else { redraw_win_later(wp, SOME_VALID); } + last_cursorline = wp->w_cursor.lnum; } } |