mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 08:47:24 +00:00
Merge branch 'tab-fix-01' into dev
This commit is contained in:
8
main.go
8
main.go
@ -545,6 +545,10 @@ func deleteEmpty(s []string) []string {
|
|||||||
func handleInput(viewName string) error {
|
func handleInput(viewName string) error {
|
||||||
clearView(viewName)
|
clearView(viewName)
|
||||||
inputString, _ := getInputString(viewName)
|
inputString, _ := getInputString(viewName)
|
||||||
|
if newViewTitle := getViewTitle(viewName); newViewTitle != "" {
|
||||||
|
// restore any tab completion view titles on input commit
|
||||||
|
setViewTitle(viewName, newViewTitle)
|
||||||
|
}
|
||||||
if inputString == "" {
|
if inputString == "" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -571,10 +575,6 @@ func handleInput(viewName string) error {
|
|||||||
inputString = resolveRootEmojis(inputString)
|
inputString = resolveRootEmojis(inputString)
|
||||||
go sendChat(inputString)
|
go sendChat(inputString)
|
||||||
}
|
}
|
||||||
// restore any tab completion view titles on input commit
|
|
||||||
if newViewTitle := getViewTitle(viewName); newViewTitle != "" {
|
|
||||||
setViewTitle(viewName, newViewTitle)
|
|
||||||
}
|
|
||||||
|
|
||||||
go populateList()
|
go populateList()
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user