mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 08:47:24 +00:00
Fix write to feed to be print instead
This commit is contained in:
2
main.go
2
main.go
@ -162,7 +162,7 @@ func getViewTitle(viewName string) string {
|
|||||||
view, err := g.View(viewName)
|
view, err := g.View(viewName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// in case there is active tab completion, filter that to just the view title and not the completion options.
|
// in case there is active tab completion, filter that to just the view title and not the completion options.
|
||||||
writeToView("Feed", fmt.Sprintf("Error getting view title: %s", err))
|
printToView("Feed", fmt.Sprintf("Error getting view title: %s", err))
|
||||||
return ""
|
return ""
|
||||||
} else {
|
} else {
|
||||||
return strings.Split(view.Title, "||")[0]
|
return strings.Split(view.Title, "||")[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user