diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-07-13 21:43:49 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-07-13 21:43:49 +0200 |
commit | d6599473549aa8aee16106c0b80634d6510014dd (patch) | |
tree | 82b04a20806a47170617420dd8868dabe6dde594 /ui/ui.go | |
parent | Always update prompt (diff) |
Don't send typing=done when input is already empty
Diffstat (limited to 'ui/ui.go')
-rw-r--r-- | ui/ui.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -236,8 +236,8 @@ func (ui *UI) InputEnter() (content string) { return ui.e.Flush() } -func (ui *UI) InputClear() { - ui.e.Clear() +func (ui *UI) InputClear() bool { + return ui.e.Clear() } func (ui *UI) Resize() { |