Mercurial > vim
changeset 12590:3c46dcf3b335 v8.0.1173
patch 8.0.1173: terminal window is not redrawn after CTRL-L
commit https://github.com/vim/vim/commit/19a3d68b2cd4beb1ee1d97a84ad4e860ffe0cbb2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 2 21:54:59 2017 +0200
patch 8.0.1173: terminal window is not redrawn after CTRL-L
Problem: Terminal window is not redrawn after CTRL-L. (Marcin Szamotulski)
Solution: Redraw the whole terminal when w_redr_type is NOT_VALID.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 02 Oct 2017 22:00:05 +0200 |
parents | e2908d2e9f5d |
children | ad52810d239c |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -56,6 +56,7 @@ * - GUI: when 'confirm' is set and trying to exit Vim, dialog offers to save * changes to "!shell". * (justrajdeep, 2017 Aug 22) + * - Redrawing is slow with Athena and Motif. * - For the GUI fill termios with default values, perhaps like pangoterm: * http://bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/head:/main.c#L134 * - if the job in the terminal does not support the mouse, we can use the @@ -2238,6 +2239,12 @@ term_update_window(win_T *wp) screen = vterm_obtain_screen(vterm); state = vterm_obtain_state(vterm); + if (wp->w_redr_type >= NOT_VALID) + { + term->tl_dirty_row_start = 0; + term->tl_dirty_row_end = MAX_ROW; + } + /* * If the window was resized a redraw will be triggered and we get here. * Adjust the size of the vterm unless 'termsize' specifies a fixed size.