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/gui.c | |
parent | 465e8b5985908596261cef9d671024ed8ded1ce3 (diff) |
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/gui.c')
-rw-r--r-- | src/gui.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -5166,8 +5166,6 @@ gui_update_screen(void) last_cursormoved = curwin->w_cursor; } - update_screen(0); /* may need to update the screen */ - setcursor(); # ifdef FEAT_CONCEAL if (conceal_update_lines && (conceal_old_cursor_line != conceal_new_cursor_line @@ -5175,11 +5173,14 @@ gui_update_screen(void) || need_cursor_line_redraw)) { if (conceal_old_cursor_line != conceal_new_cursor_line) - update_single_line(curwin, conceal_old_cursor_line); - update_single_line(curwin, conceal_new_cursor_line); + redrawWinline(curwin, conceal_old_cursor_line); + redrawWinline(curwin, conceal_new_cursor_line); curwin->w_valid &= ~VALID_CROW; + need_cursor_line_redraw = FALSE; } # endif + update_screen(0); /* may need to update the screen */ + setcursor(); out_flush_cursor(TRUE, FALSE); } #endif |