Skip to content

Commit

Permalink
Show Search dialog count label correctly
Browse files Browse the repository at this point in the history
Copy/paste error in previous commit meant count label was only
shown if *Quick*Search dialog was popped, not *Search* dialog.
  • Loading branch information
windymilla committed Oct 2, 2023
1 parent 1839483 commit 5b6ebb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Guiguts/SearchReplaceMenu.pm
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ sub countmatches {
my $count = 0;
++$count while searchtext( $searchterm, 2 ); # search very silently, counting matches
$::lglobal{searchnumlabel}->configure( -text => searchnumtext($count) )
if defined $::lglobal{quicksearchpop};
if defined $::lglobal{searchpop};

# restore saved globals
$::searchstartindex = $savesearchstartindex;
Expand Down

0 comments on commit 5b6ebb0

Please sign in to comment.