summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-02 11:00:05 -0400
committerJune McEnroe <june@causal.agency>2020-04-02 11:00:05 -0400
commita0f012c614e25f9a0172d1da228c152ca6e2eb4c (patch)
treeb79110ce4f35d1ce2cfe7d6672a70ecb93bc9511
parentPreserve the last blank line on reflow (diff)
downloadcatgirl-a0f012c614e25f9a0172d1da228c152ca6e2eb4c.tar.gz
catgirl-a0f012c614e25f9a0172d1da228c152ca6e2eb4c.zip
Do not add an extra blank line on uiLoad
Adding one for the last unread position now, so this is mostly
redundant, I think.
-rw-r--r--ui.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index f4e1200..6d9dddc 100644
--- a/ui.c
+++ b/ui.c
@@ -1095,8 +1095,6 @@ void uiLoad(const char *name) {
 			bufferPush(&window->buffer, heat, time, buf);
 		}
 		reflow(window);
-		waddch(window->pad, '\n');
-		window->unreadLines++;
 	}
 
 	free(buf);
d=f1b1ffe79fb17e4228d9fb0a10aaba299b15548b&follow=1'>Make safe filling the who bufferJune McEnroe 2018-08-07Add reverse and reset IRC formatting codesJune McEnroe 2018-08-06Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe