Skip to content

Commit

Permalink
fix: history not being saved for all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Jan 14, 2025
1 parent a7e0fb7 commit effa76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ func activateItem(keepOpen, alt bool) {

identifier := entry.Identifier()

if entry.History {
if module.General().History {
hstry.Save(identifier, strings.TrimSpace(elements.input.Text()))
}

Expand Down Expand Up @@ -812,7 +812,7 @@ func processAsync(text string) {
}

if toMatch == "" {
if e[k].ScoreFinal != 0 {
if e[k].ScoreFinal != 0 || config.Cfg.List.ShowInitialEntries {
if e[k].Prefix != "" && strings.HasPrefix(text, e[k].Prefix) {
hasEntryPrefix = true

Expand Down

0 comments on commit effa76c

Please sign in to comment.