diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-12 21:52:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-12 21:52:18 +0200 |
commit | 90a997987dbbe43af3c15118a35f658f0f037d1d (patch) | |
tree | 53f3974a235a4bc9c0a266fde3c5e86d5fde5ac6 /src/edit.c | |
parent | 643b6140873e0e6f297df0cbca11bc1ea1f21925 (diff) |
patch 8.1.0372: screen updating slow when 'cursorline' is setv8.1.0372
Problem: Screen updating slow when 'cursorline' is set.
Solution: Only redraw the old and new cursor line, not all lines.
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/edit.c b/src/edit.c index ff45bb7ee5..72dc586222 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1966,7 +1966,7 @@ edit_unputchar(void) if (pc_status == PC_STATUS_RIGHT) ++curwin->w_wcol; if (pc_status == PC_STATUS_RIGHT || pc_status == PC_STATUS_LEFT) - redrawWinline(curwin->w_cursor.lnum, FALSE); + redrawWinline(curwin, curwin->w_cursor.lnum, FALSE); else #endif screen_puts(pc_bytes, pc_row - msg_scrolled, pc_col, pc_attr); @@ -2017,7 +2017,7 @@ undisplay_dollar(void) if (dollar_vcol >= 0) { dollar_vcol = -1; - redrawWinline(curwin->w_cursor.lnum, FALSE); + redrawWinline(curwin, curwin->w_cursor.lnum, FALSE); } } @@ -7079,7 +7079,7 @@ check_spell_redraw(void) linenr_T lnum = spell_redraw_lnum; spell_redraw_lnum = 0; - redrawWinline(lnum, FALSE); + redrawWinline(curwin, lnum, FALSE); } } |