summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 023de21..f4e1200 100644
--- a/ui.c
+++ b/ui.c
@@ -636,7 +636,12 @@ static void reflow(struct Window *window) {
 		struct Line line = bufferLine(&window->buffer, i);
 		if (!line.str) continue;
 		if (line.heat < Cold && window->ignore) continue;
-		int lines = wordWrap(window->pad, line.str);
+		int lines = 0;
+		if (i == (size_t)(BufferCap - window->unread)) {
+			waddch(window->pad, '\n');
+			lines++;
+		}
+		lines += wordWrap(window->pad, line.str);
 		if (i >= (size_t)(BufferCap - window->unread)) {
 			window->unreadLines += lines;
 		}
:01:00 -0400'>2020-08-23Replace “RAND_bytes” by “getentropy”Issam E. Maghni 2020-08-16contrib/palaver: Add no message preview flagsJune McEnroe 2020-08-13contrib/palaver: Don't set channel for PMsJune McEnroe 2020-08-13Fix unintended interception of NICK after registrationJune McEnroe 2020-08-12Add Additional Components section to READMEJune McEnroe 2020-08-12Document -L / palaver optionJune McEnroe 2020-08-11contrib/palaver: Document service configurationJune McEnroe 2020-08-11contrib/palaver: Add install target and rc scriptJune McEnroe 2020-08-11contrib/palaver: Implement command and notificationsJune McEnroe