summaryrefslogtreecommitdiffstats
path: root/src/terminal.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-04-01 17:16:02 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-04-01 17:25:47 +0900
commit8ec917b1c36ed1cf6ace64419307aa85fda4bee3 (patch)
tree74d6f5e0e59a82ad13f0d51cd51aa8ee34c36025 /src/terminal.go
parent1c7534f00966edca7c44054af199ca27aca0a80c (diff)
Add 'one' event
Close #2629 Close #2494 Close #459
Diffstat (limited to 'src/terminal.go')
-rw-r--r--src/terminal.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 57ff4f54..5ecba97b 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -932,6 +932,12 @@ func (t *Terminal) UpdateList(merger *Merger, reset bool) {
t.cy = count - util.Min(count, t.maxItems()) + pos
}
}
+ if !t.reading && t.merger.Length() == 1 {
+ one := tui.One.AsEvent()
+ if _, prs := t.keymap[one]; prs {
+ t.eventChan <- one
+ }
+ }
t.mutex.Unlock()
t.reqBox.Set(reqInfo, nil)
t.reqBox.Set(reqList, nil)