Code

Use werase() instead of wclear() when reloading a view
authorJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 17:07:42 +0000 (19:07 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 17:11:05 +0000 (19:11 +0200)
It behaves much better by not causing the parent view to be repainted.

tig.c

diff --git a/tig.c b/tig.c
index a7499ea13efbe4f732b2393c2e24371491d6c1a7..eddd86e402ad5faba78622eaf114740496fa8da7 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2379,7 +2379,7 @@ open_view(struct view *prev, enum request request, enum open_flags flags)
        if (view->pipe && view->lines == 0) {
                /* Clear the old view and let the incremental updating refill
                 * the screen. */
-               wclear(view->win);
+               werase(view->win);
                report("");
        } else {
                redraw_view(view);