From 4d1f1a52fa1c7af564c3b3c9d604dbde64fda928 Mon Sep 17 00:00:00 2001 From: skanehira Date: Wed, 30 Oct 2019 22:38:42 +0900 Subject: [PATCH] change input field width --- gui/gui.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/gui.go b/gui/gui.go index 8be60e6..b2e8676 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -80,10 +80,9 @@ func (g *Gui) Input(text string, doneFunc func(text string)) { } func (g *Gui) LoadJSON() { - width := 30 pageName := "read_from_file" form := tview.NewForm() - form.AddInputField("file", "", width, nil, nil). + form.AddInputField("file", "", 0, nil, nil). AddButton("read", func() { file := form.GetFormItem(0).(*tview.InputField).GetText() file = os.ExpandEnv(file)