Skip to content

Commit

Permalink
minor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Jan 14, 2025
1 parent bb2775c commit caa3256
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.1-git
0.12.1
2 changes: 0 additions & 2 deletions internal/ui/interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ func setupInteractions(appstate *state.AppState) {
go setupCommands()
parseKeybinds()

lastQuery = trimArgumentDelimiter(elements.input.Text())

elements.input.Connect("changed", func() {
text := elements.input.Text()

Expand Down
3 changes: 2 additions & 1 deletion internal/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,10 @@ func afterUI() {
handleListVisibility()

if appstate.InitialQuery != "" {
elements.input.SetText(appstate.InitialQuery)
glib.IdleAdd(func() {
elements.input.SetText(appstate.InitialQuery)
elements.input.SetPosition(-1)
elements.input.Emit("changed")
})
}

Expand Down

0 comments on commit caa3256

Please sign in to comment.