|
|
|
@ -545,6 +545,10 @@ func deleteEmpty(s []string) []string {
@@ -545,6 +545,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 |
|
|
|
|
} |
|
|
|
@ -570,10 +574,6 @@ func handleInput(viewName string) error {
@@ -570,10 +574,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 |
|
|
|
|