Skip to content

Commit

Permalink
fixed missing Combobox History for Replace
Browse files Browse the repository at this point in the history
  • Loading branch information
daddel80 committed Oct 24, 2023
1 parent 513fe93 commit 1a0fe79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MultiReplacePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,10 @@ void MultiReplace::handleReplaceButton() {
SelectionInfo selection = getSelectionInfo();
bool wasReplaced = replaceOne(replaceItem, selection, searchResult, newPos);

// Add the entered text to the combo box history
addStringToComboBoxHistory(GetDlgItem(_hSelf, IDC_FIND_EDIT), replaceItem.findText);
addStringToComboBoxHistory(GetDlgItem(_hSelf, IDC_REPLACE_EDIT), replaceItem.replaceText);

if (searchResult.pos < 0 && wrapAroundEnabled) {
searchResult = performSearchForward(findTextUtf8, searchFlags, true, 0);
}
Expand Down

0 comments on commit 1a0fe79

Please sign in to comment.