From 9063c656d516b1842f9078cd9bb4cd5f1fd4a14a Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 2 Apr 2020 10:56:33 -0400 Subject: Preserve the last blank line on reflow --- ui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- cgit 1.4.1 ion> dontfiles
summary refs log tree commit diff
path: root/www/causal.agency/index.7 (unfollow)
Commit message (Collapse)Author
2021-01-12Prevent matching the same tag twiceJune McEnroe
2021-01-12Process htagml file line by lineJune McEnroe
This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future.
2021-01-12Split fields by tab onlyJune McEnroe
Also don't fail hard on non-forward-search definitions.
2021-01-12List both Makefile and html.sh under README.7June McEnroe
2021-01-12Add htagml exampleJune McEnroe
2021-01-12Use mandoc and htagml for bin htmlJune McEnroe
2021-01-12Add htagmlJune McEnroe
2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe
2021-01-11Publish "Using vi"June McEnroe
2021-01-11Enable diff.colorMovedJune McEnroe
2021-01-10Set less search case-insensitiveJune McEnroe
2021-01-10Set EXINITJune McEnroe
neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated.
2021-01-09Add c -t flag to print expression typeJune McEnroe
Also add missing float case.
2021-01-05Update taglineJune McEnroe