Subject: catgirl: Fix overflow/split marker bleeding into the prompt area (patch)

From: Alcor <[email-masked]>
Date: Mon, 11 May 2026 16:35:29 +0200

Steps to reproduce:

1. Connect to any network
2. Switch to any channel or query buffer
3. Type in any message with a length greater than 512 characters
4. Press ENTER to send the message

Expected result:

The sent messages are echoed, the prompt is cleared and then redisplayed.

Observed result:

See attached screenshot. The overflow/split marker bleeds over into the
prompt area (in the area just before the nick) after the messages are
echoed.

The superfluous red background persists until an edit action or motion
is performed.

Patch / Fix:

The patch resets the color pair for the input area in inputUpdate().

>From 89cd525dc782ba38e4de0033e473311513cfa954 Mon Sep 17 00:00:00 2001
From: Alcor <[email-masked]>
Date: Mon, 11 May 2026 09:51:58 +0200
Subject: [PATCH 3/8] Reset input attributes before clearing to EOL

Prevents the overflow/split marker from bleeding into the prompt area
---
 input.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/input.c b/input.c
index 748dca2..5eff915 100644
--- a/input.c
+++ b/input.c
@@ -233,6 +233,7 @@ void inputUpdate(void) {
 		style.bg = Red;
 	}
 	inputAdd(styleInput, &style, ptr);
+	wattr_set(uiInput, A_NORMAL, 0, NULL);
 	wclrtoeol(uiInput);
 	wmove(uiInput, y, posx);
 }
-- 
2.47.3