summaryrefslogtreecommitdiffstats
path: root/src/terminal.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.go')
-rw-r--r--src/terminal.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 2bb785c1..e0ff5b2b 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -266,6 +266,7 @@ const (
actBackwardWord
actCancel
actChangePrompt
+ actChangeQuery
actClearScreen
actClearQuery
actClearSelection
@@ -2647,6 +2648,9 @@ func (t *Terminal) Loop() {
}
case actPrintQuery:
req(reqPrintQuery)
+ case actChangeQuery:
+ t.input = []rune(a.a)
+ t.cx = len(t.input)
case actChangePrompt:
t.prompt, t.promptLen = t.parsePrompt(a.a)
req(reqPrompt)