Skip to content

Commit

Permalink
🐛 Fix bug which caused some search items to be invisible
Browse files Browse the repository at this point in the history
...if they were found in history and history is disabled.
  • Loading branch information
yamnikov-oleg committed Mar 18, 2017
1 parent 8a4eabd commit 88ce861
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hist_entries.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ func MakeHistRecord(entry HistRecord) {
}

func IsInHistory(cmdline string) bool {
// If history category is disabled, history contains no entries.
if !Config.EnabledCategories.History {
return false
}

for _, r := range History {
if r.Cmdline == cmdline {
return true
Expand Down

0 comments on commit 88ce861

Please sign in to comment.