Make Alt and a digit set the send target as /window does (closes #221)
check / check (push) Canceled after 0s
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:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user