Make Alt and a digit set the send target as /window does (closes #221)
check / check (push) Canceled after 0s

In neoirc-cli, Alt and a digit switched the window but kept the send
target, so typed text went to the window the user had left. The key
now runs /window with that digit through the input handler.

/window 0 now clears the send target. The status window has no target,
but the command used to keep the previous one.

Model: opus-5-5
This commit was merged in pull request #224.
This commit is contained in:
2026-10-28 01:30:33 +01:00
parent fe23bb5045
commit 967930f9bc
3 changed files with 66 additions and 2 deletions
+4
View File
@@ -627,6 +627,10 @@ func (a *App) cmdWindow(args string) {
nick, buf.Name, "connected",
)
} else {
a.mu.Lock()
a.target = ""
a.mu.Unlock()
a.ui.SetStatus(nick, "", "connected")
}
}