Browse Source

fixes issue with tab completion where commands would not clear input box titles

pull/33/head
David Haukeness 5 years ago
parent
commit
790d295e2e
No known key found for this signature in database
GPG Key ID: A7F1091956853EF9
  1. 8
      main.go

8
main.go

@ -543,6 +543,10 @@ func deleteEmpty(s []string) []string { @@ -543,6 +543,10 @@ func deleteEmpty(s []string) []string {
func handleInput(viewName string) error {
clearView(viewName)
inputString, _ := getInputString(viewName)
if newViewTitle := getViewTitle(viewName); newViewTitle != "" {
// restore any tab completion view titles on input commit
setViewTitle(viewName, newViewTitle)
}
if inputString == "" {
return nil
}
@ -568,10 +572,6 @@ func handleInput(viewName string) error { @@ -568,10 +572,6 @@ func handleInput(viewName string) error {
} else {
go sendChat(inputString)
}
// restore any tab completion view titles on input commit
if newViewTitle := getViewTitle(viewName); newViewTitle != "" {
setViewTitle(viewName, newViewTitle)
}
go populateList()
return nil

Loading…
Cancel
Save