about summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 938eda6..84a0d9c 100644
--- a/ui.c
+++ b/ui.c
@@ -634,8 +634,10 @@ static void reflow(struct Window *window) {
 		}
 		flowed += lines;
 	}
-	wscrl(window->pad, -(WindowLines - 1 - flowed));
-	wmove(window->pad, WindowLines - 1, RIGHT);
+	if (flowed < WindowLines) {
+		wscrl(window->pad, -(WindowLines - 1 - flowed));
+		wmove(window->pad, WindowLines - 1, RIGHT);
+	}
 }
 
 static void resize(void) {
.c?id=822f710ade459954384d9f6980c156b73c5ad198&follow=1'>Prefer tag matches not preceded by [[:alnum:]]June McEnroe 2021-01-19Escape \ and / in mtags search patternsJune McEnroe 2021-01-20Use mtags in source-filterJune McEnroe 2021-01-19Add mtags to generate tags for make and mdocJune McEnroe 2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe 2021-01-19Don't use a pager if reading standard inputJune McEnroe 2021-01-19Support BSD make syntax and match *.amJune McEnroe 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe 2021-01-18Allow matching lexers using first input lineJune McEnroe