mirror of
https://github.com/junegunn/fzf.git
synced 2026-02-12 21:21:58 +08:00
@@ -343,6 +343,7 @@ const (
|
||||
actAbort
|
||||
actAccept
|
||||
actAcceptNonEmpty
|
||||
actAcceptOrPrintQuery
|
||||
actBackwardChar
|
||||
actBackwardDeleteChar
|
||||
actBackwardDeleteCharEOF
|
||||
@@ -3497,6 +3498,12 @@ func (t *Terminal) Loop() {
|
||||
if len(t.selected) > 0 || t.merger.Length() > 0 || !t.reading && t.count == 0 {
|
||||
req(reqClose)
|
||||
}
|
||||
case actAcceptOrPrintQuery:
|
||||
if len(t.selected) > 0 || t.merger.Length() > 0 {
|
||||
req(reqClose)
|
||||
} else {
|
||||
req(reqPrintQuery)
|
||||
}
|
||||
case actClearScreen:
|
||||
req(reqFullRedraw)
|
||||
case actClearQuery:
|
||||
|
||||
Reference in New Issue
Block a user