From a684bf4701d156c09fe6c777e797c173570f0ca3 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 19 Feb 2020 18:19:01 -0500 Subject: [PATCH] Property convert single character input to strings --- input/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input.go b/input/input.go index 84f577b..4e470ec 100644 --- a/input/input.go +++ b/input/input.go @@ -116,7 +116,7 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) { m.pos = 0 return m, nil case tea.KeyRune: - m.Value = m.Value[:m.pos] + msg.String() + m.Value[m.pos:] + m.Value = m.Value[:m.pos] + string(msg.Rune) + m.Value[m.pos:] m.pos++ return m, nil default: