From 2a8abcaafe0b9e7c83ba5dead3c4bd0aee4a377d Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 8 May 2012 07:59:27 +1000 Subject: [PATCH] browser: clear the end of the split-window when needed. We would get some garbage when near the end of the diff. Signed-off-by: NeilBrown --- vpatch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vpatch.c b/vpatch.c index 4411b4c..b8586fc 100644 --- a/vpatch.c +++ b/vpatch.c @@ -1359,6 +1359,8 @@ static void merge_window(struct plist *p, FILE *f, int reverse) tpos, 0, NULL); next_mline(&tpos, fm, fb, fa, ci.merger, smode); } + while (i < rows) + blank(i++, 0, cols, a_void); } #define META(c) ((c)|0x1000) #define SEARCH(c) ((c)|0x2000) -- 2.39.5