Skip to content

Commit

Permalink
empty columnDelimiterData if Column or Delimiter is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
daddel80 committed Jul 27, 2023
1 parent feef226 commit bf313e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MultiReplacePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ INT_PTR CALLBACK MultiReplace::run_dlgProc(UINT message, WPARAM wParam, LPARAM l
if (!columnDelimiterData.columns.empty() && !columnDelimiterData.delimiter.empty()) {
highlightColumns();
LRESULT startPosition = ::SendMessage(_hScintilla, SCI_GETCURRENTPOS, 0, 0);
showStatusMessage(addLineAndColumnMessage(startPosition), RGB(0, 128, 0));
showStatusMessage(L"Actual Position " + addLineAndColumnMessage(startPosition), RGB(0, 128, 0));
}
}
else {
Expand Down Expand Up @@ -2232,6 +2232,8 @@ void MultiReplace::parseColumnAndDelimiterData() {

if (columnDataString.empty() || delimiterData.empty()) {
showStatusMessage(L"Column data or delimiter data is missing", RGB(255, 0, 0));
columnDelimiterData.columns.clear();
columnDelimiterData.delimiter = L"";
return;
}

Expand Down

0 comments on commit bf313e0

Please sign in to comment.