about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui.c b/ui.c
index fbbaae2..e634db5 100644
--- a/ui.c
+++ b/ui.c
@@ -130,6 +130,8 @@ static int logHeight(void) {
 	return LINES - 2;
 }
 
+static int _;
+
 void uiDraw(void) {
 	if (ui.hide) return;
 	wnoutrefresh(ui.status);
@@ -139,7 +141,7 @@ void uiDraw(void) {
 		1, 0,
 		lastLine() - 1, lastCol()
 	);
-	int _, x;
+	int x;
 	getyx(ui.input, _, x);
 	pnoutrefresh(
 		ui.input,
@@ -201,7 +203,7 @@ static int addWrap(WINDOW *win, const wchar_t *str) {
 		size_t word = 1 + wcscspn(&format.str[1], L" ");
 		if (word < format.len) format.len = word;
 
-		int _, x, xMax;
+		int x, xMax;
 		getyx(win, _, x);
 		getmaxyx(win, _, xMax);
 		if (xMax - x - 1 < printWidth(format.str, word)) {
@@ -548,7 +550,7 @@ void uiPrompt(void) {
 	if (prompt) addWrap(ui.input, prompt);
 	free(prompt);
 
-	int _, x = 0;
+	int x = 0;
 	struct Format format = { .str = input };
 	formatReset(&format);
 	while (formatParse(&format, editTail())) {
7db07a96f1c13fc26d508dbdb747e9d412fec84&follow=1'>Allow cd host:path over sshJune McEnroe 2020-10-07Use mandoc -T utf8 for text.June McEnroe 2020-09-20Add The Awakened KingdomJune McEnroe 2020-09-12Move /opt/local back, cheat port select to use system manJune McEnroe 2020-09-12Move /opt/local behind /usr againJune McEnroe 2020-09-12Enable toc in cgit renderings of man pagesJune McEnroe 2020-09-11Install mandoc on macOSJune McEnroe 2020-09-11Rewrite install script yet againJune McEnroe 2020-09-11Remove NetBSD from install scriptJune McEnroe 2020-09-11Use MacPorts rather than pkgsrcJune McEnroe 2020-09-11Add debian VM name to sshJune McEnroe 2020-09-11Add influencer tweetJune McEnroe 2020-09-10Add The Kingdom of GodsJune McEnroe 2020-09-07Add SunglassesJune McEnroe 2020-09-06Add Between the BreathsJune McEnroe 2020-09-04Open /dev/tty in nudgeJune McEnroe 2020-09-04Add nudgeJune McEnroe 2020-09-03Build fbclock with -lzJune McEnroe 2020-08-29Add tweets from retweetsJune McEnroe