diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2019-01-11 12:30:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-11 12:30:17 +0100 |
| commit | 8853fca1fdc5ee3a2aea3eb3e772e091946a3a71 (patch) | |
| tree | 795d73cfbc14ffdd3615e48bd19baeb0a830ec3f /src/nvim/screen.c | |
| parent | 10f29f79f4e8240254b916160ae5bb17ff56d161 (diff) | |
| parent | 889f73e8618458ed46050e26cac0dee30a19b4f4 (diff) | |
| download | rneovim-8853fca1fdc5ee3a2aea3eb3e772e091946a3a71.tar.gz rneovim-8853fca1fdc5ee3a2aea3eb3e772e091946a3a71.tar.bz2 rneovim-8853fca1fdc5ee3a2aea3eb3e772e091946a3a71.zip | |
Merge pull request #9484 from bfredl/highlander
screen: make update_screen() the only entry point for redrawing
Diffstat (limited to 'src/nvim/screen.c')
| -rw-r--r-- | src/nvim/screen.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 513f8dac9a..68d95decff 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -482,25 +482,6 @@ void update_screen(int type) } -// Prepare for updating one or more windows. -// Caller must check for "updating_screen" already set to avoid recursiveness. -static void update_prepare(void) -{ - updating_screen = true; - start_search_hl(); -} - -// Finish updating one or more windows. -static void update_finish(void) -{ - if (redraw_cmdline) { - showmode(); - } - - end_search_hl(); - updating_screen = false; -} - /* * Return TRUE if the cursor line in window "wp" may be concealed, according * to the 'concealcursor' option. @@ -537,39 +518,6 @@ void conceal_check_cursor_line(void) } } -void update_single_line(win_T *wp, linenr_T lnum) -{ - int row; - int j; - - // Don't do anything if the screen structures are (not yet) valid. - if (linebuf_char == NULL || updating_screen) { - return; - } - - if (lnum >= wp->w_topline && lnum < wp->w_botline - && foldedCount(wp, lnum, &win_foldinfo) == 0) { - update_prepare(); - - row = 0; - for (j = 0; j < wp->w_lines_valid; ++j) { - if (lnum == wp->w_lines[j].wl_lnum) { - init_search_hl(wp); - prepare_search_hl(wp, lnum); - update_window_hl(wp, false); - // allocate window grid if not already - win_grid_alloc(wp); - win_line(wp, lnum, row, row + wp->w_lines[j].wl_size, false, false); - break; - } - row += wp->w_lines[j].wl_size; - } - - update_finish(); - } - need_cursor_line_redraw = false; -} - /* * Update a single window. |