diff options
Diffstat (limited to 'lib/ui')
-rw-r--r-- | lib/ui/textinput.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index aff520bd..542a1f88 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -57,6 +57,8 @@ func (ti *TextInput) Focus(focus bool) { if focus && ti.ctx != nil { cells := runewidth.StringWidth(string(ti.text[:ti.index])) ti.ctx.SetCursor(cells+1, 0) + } else if !focus && ti.ctx != nil { + ti.ctx.HideCursor() } } |