Skip to content

Commit

Permalink
Fix match count for tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
lifenjoiner committed Oct 12, 2024
1 parent 4377e2b commit f9222b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,7 @@ LRESULT CSearchDlg::DoListNotify(LPNMITEMACTIVATE lpNMItemActivate)
}

std::wstring sFormat = TranslatedString(hResource, IDS_CONTEXTLINE);
int leftMax = static_cast<int>(pInfo->matchLinesMap.size());
int leftMax = static_cast<int>(pInfo->matchLinesNumbers.size());
int showMax = min(leftMax, subIndex + 5);
for (; subIndex < showMax; ++subIndex)
{
Expand Down

0 comments on commit f9222b7

Please sign in to comment.