comparison src/drawscreen.c @ 18440:d6cb1e706fb7 v8.1.2214

patch 8.1.2214: too much is redrawn when 'cursorline' is set Commit: https://github.com/vim/vim/commit/11a58af66fa5c442f0a22c5d59beabf187ed4e89 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 24 22:32:31 2019 +0200 patch 8.1.2214: too much is redrawn when 'cursorline' is set Problem: Too much is redrawn when 'cursorline' is set. Solution: Don't do a complete redraw. (closes https://github.com/vim/vim/issues/5079)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Oct 2019 22:45:04 +0200
parents 2a806e3c39f6
children 78e43be18f6b
comparison
equal deleted inserted replaced
18439:1768dfc3a9f6 18440:d6cb1e706fb7
2122 // match in fixed position might need redraw 2122 // match in fixed position might need redraw
2123 // if lines were inserted or deleted 2123 // if lines were inserted or deleted
2124 || (wp->w_match_head != NULL 2124 || (wp->w_match_head != NULL
2125 && buf->b_mod_xlines != 0) 2125 && buf->b_mod_xlines != 0)
2126 #endif 2126 #endif
2127 ))))) 2127 ))))
2128 #ifdef FEAT_SYN_HL
2129 || (wp->w_p_cul && (lnum == wp->w_cursor.lnum
2130 || lnum == wp->w_last_cursorline))
2131 #endif
2132 )
2128 { 2133 {
2129 #ifdef FEAT_SEARCH_EXTRA 2134 #ifdef FEAT_SEARCH_EXTRA
2130 if (lnum == mod_top) 2135 if (lnum == mod_top)
2131 top_to_mod = FALSE; 2136 top_to_mod = FALSE;
2132 #endif 2137 #endif