Skip to content

Commit

Permalink
added list ntry higlighting for Replace
Browse files Browse the repository at this point in the history
  • Loading branch information
daddel80 committed Oct 7, 2024
1 parent 87dba2a commit 5e5d8e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MultiReplacePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2960,6 +2960,7 @@ void MultiReplace::handleReplaceButton() {
if (replacements > 0) {
if (searchResult.pos >= 0) {
updateCountColumns(matchIndex, 1);
selectListItem(matchIndex); // Highlight the matched item in the list
showStatusMessage(getLangStr(L"status_replace_next_found", { std::to_wstring(replacements) }), RGB(0, 128, 0));
}
else {
Expand All @@ -2971,6 +2972,8 @@ void MultiReplace::handleReplaceButton() {
showStatusMessage(getLangStr(L"status_no_occurrence_found"), RGB(255, 0, 0));
}
else {
updateCountColumns(matchIndex, 1);
selectListItem(matchIndex); // Highlight the matched item in the list
showStatusMessage(getLangStr(L"status_found_text_not_replaced"), RGB(255, 0, 0));
}
}
Expand Down

0 comments on commit 5e5d8e4

Please sign in to comment.