summaryrefslogtreecommitdiffstats
path: root/pkg/gui/credentials_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-10-17 13:00:44 +1100
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-17 04:17:59 +0000
commit345c90ac05bffd6e4163be9dabc0386cd8918057 (patch)
treeed29b41dfe6354adba1f81c11d676519ebdf2daa /pkg/gui/credentials_panel.go
parent7564e506b525e0831a1fb88dfc70e9d27564d8a1 (diff)
fix editor
Diffstat (limited to 'pkg/gui/credentials_panel.go')
-rw-r--r--pkg/gui/credentials_panel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/credentials_panel.go b/pkg/gui/credentials_panel.go
index ac162ae02..cb814243f 100644
--- a/pkg/gui/credentials_panel.go
+++ b/pkg/gui/credentials_panel.go
@@ -41,7 +41,7 @@ func (gui *Gui) promptUserForCredential(passOrUname string) string {
func (gui *Gui) handleSubmitCredential() error {
credentialsView := gui.Views.Credentials
- message := gui.trimmedContent(credentialsView)
+ message := strings.TrimSpace(credentialsView.TextArea.GetContent())
gui.credentials <- message
gui.clearEditorView(credentialsView)
if err := gui.returnFromContext(); err != nil {