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 14a90d51..08535484 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -214,6 +214,7 @@ const (
actBackwardDeleteCharEOF
actBackwardWord
actCancel
+ actChangePrompt
actClearScreen
actClearQuery
actClearSelection
@@ -2223,6 +2224,9 @@ func (t *Terminal) Loop() {
}
case actPrintQuery:
req(reqPrintQuery)
+ case actChangePrompt:
+ t.prompt, t.promptLen = t.parsePrompt(a.a)
+ req(reqPrompt)
case actPreview:
togglePreview(true)
refreshPreview(a.a)