Skip to content

Commit

Permalink
Fix logic for command display
Browse files Browse the repository at this point in the history
  • Loading branch information
terminationshock committed Oct 31, 2023
1 parent d11f903 commit 69bddd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (pageList *PageList) setStatus(programExecuted string) {

index := pageList.list.GetCurrentItem()
info += fmt.Sprintf("Line %d of %d", index + 1, pageList.list.GetItemCount())
if config.program != "" && programExecuted == "" {
if config.program != "" && programExecuted == "" && pageList.itemList.Get(index).HasMatch() {
info += space + pageList.itemList.Get(index).PrintCommand()
}

Expand Down

0 comments on commit 69bddd3

Please sign in to comment.