Skip to content

Commit 19a3d68

Browse files
committed
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.
1 parent 2a6a6c3 commit 19a3d68

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/terminal.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
* - GUI: when 'confirm' is set and trying to exit Vim, dialog offers to save
5757
* changes to "!shell".
5858
* (justrajdeep, 2017 Aug 22)
59+
* - Redrawing is slow with Athena and Motif.
5960
* - For the GUI fill termios with default values, perhaps like pangoterm:
6061
* http://bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/head:/main.c#L134
6162
* - 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)
22382239
screen = vterm_obtain_screen(vterm);
22392240
state = vterm_obtain_state(vterm);
22402241

2242+
if (wp->w_redr_type >= NOT_VALID)
2243+
{
2244+
term->tl_dirty_row_start = 0;
2245+
term->tl_dirty_row_end = MAX_ROW;
2246+
}
2247+
22412248
/*
22422249
* If the window was resized a redraw will be triggered and we get here.
22432250
* Adjust the size of the vterm unless 'termsize' specifies a fixed size.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1173,
764766
/**/
765767
1172,
766768
/**/

0 commit comments

Comments
 (0)