From 1a0fe798e6d6194456480b21688359f27e6e092c Mon Sep 17 00:00:00 2001 From: Thomas Knoefel Date: Tue, 24 Oct 2023 16:47:41 +0200 Subject: [PATCH] fixed missing Combobox History for Replace --- src/MultiReplacePanel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MultiReplacePanel.cpp b/src/MultiReplacePanel.cpp index 3457ec6..d93818c 100644 --- a/src/MultiReplacePanel.cpp +++ b/src/MultiReplacePanel.cpp @@ -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); }