diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-11 20:45:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-11 20:45:36 +0100 |
commit | 535d5b653a1eddf49ee11dc9639c5355ef023301 (patch) | |
tree | 108a023a948f57b7620d2cad3c4931c58f21706c /src/screen.c | |
parent | 465e8b5985908596261cef9d671024ed8ded1ce3 (diff) | |
download | vim-git-535d5b653a1eddf49ee11dc9639c5355ef023301.tar.gz |
patch 8.1.0726: redrawing specifically for conceal featurev8.1.0726
Problem: Redrawing specifically for conceal feature.
Solution: Use generic redrawing methods.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/screen.c b/src/screen.c index 926a09083..9b976ffaf 100644 --- a/src/screen.c +++ b/src/screen.c @@ -927,55 +927,6 @@ conceal_check_cursor_line(void) curs_columns(TRUE); } } - - void -update_single_line(win_T *wp, linenr_T lnum) -{ - int row; - int j; -#ifdef SYN_TIME_LIMIT - proftime_T syntax_tm; -#endif - - /* Don't do anything if the screen structures are (not yet) valid. */ - if (!screen_valid(TRUE) || updating_screen) - return; - - if (lnum >= wp->w_topline && lnum < wp->w_botline - && foldedCount(wp, lnum, &win_foldinfo) == 0) - { -#ifdef SYN_TIME_LIMIT - /* Set the time limit to 'redrawtime'. */ - profile_setlimit(p_rdt, &syntax_tm); - syn_set_timeout(&syntax_tm); -#endif - update_prepare(); - - row = 0; - for (j = 0; j < wp->w_lines_valid; ++j) - { - if (lnum == wp->w_lines[j].wl_lnum) - { - screen_start(); /* not sure of screen cursor */ -# ifdef FEAT_SEARCH_EXTRA - init_search_hl(wp); - prepare_search_hl(wp, lnum); -# endif - win_line(wp, lnum, row, row + wp->w_lines[j].wl_size, - FALSE, FALSE); - break; - } - row += wp->w_lines[j].wl_size; - } - - update_finish(); - -#ifdef SYN_TIME_LIMIT - syn_set_timeout(NULL); -#endif - } - need_cursor_line_redraw = FALSE; -} #endif #if defined(FEAT_SIGNS) || defined(PROTO) |