summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-02 21:54:59 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-02 21:54:59 +0200
commit19a3d68b2cd4beb1ee1d97a84ad4e860ffe0cbb2 (patch)
tree53564f0258e9d3256ae5f1f953fcc781f34a78f8
parent2a6a6c3014e728cd01c750b0f60484d4eaf22a8c (diff)
patch 8.0.1173: terminal window is not redrawn after CTRL-Lv8.0.1173
Problem: Terminal window is not redrawn after CTRL-L. (Marcin Szamotulski) Solution: Redraw the whole terminal when w_redr_type is NOT_VALID.
-rw-r--r--src/terminal.c7
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c
index f0ae5ed31b..2ad98bac8b 100644
--- 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.
diff --git a/src/version.c b/src/version.c
index 6e3f90a37e..ab0d57d401 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1173,
+/**/
1172,
/**/
1171,