Skip to content

Commit

Permalink
minor: don't query if adding/changing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Jan 17, 2025
1 parent f8690c0 commit 712445d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/ui/interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ func setupInteractions(appstate *state.AppState) {
parseKeybinds()

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

text = trimArgumentDelimiter(text)

if lastQuery != text {
executeEvent(config.EventQueryChange, "")
lastQuery = text
if lastQuery == text {
return
}

executeEvent(config.EventQueryChange, "")
lastQuery = text

if elements.clear != nil {
if text == "" {
elements.clear.SetVisible(false)
Expand Down

0 comments on commit 712445d

Please sign in to comment.