mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-25 19:08:47 +02:00
Fix a logic error
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16889#issuecomment-3328064735
This commit is contained in:
parent
f44795a69e
commit
f68e1d1fd3
@ -4863,11 +4863,15 @@ bool ScintillaEditView::pasteToMultiSelection() const
|
||||
|
||||
vector<wstring> clipboardStrings;
|
||||
|
||||
wstring eol = L"\r\n";
|
||||
if (clipboardStr.find(L"\n") != std::wstring::npos)
|
||||
wstring eol;
|
||||
if (clipboardStr.find(L"\r\n") != std::wstring::npos)
|
||||
eol = L"\r\n";
|
||||
else if (clipboardStr.find(L"\n") != std::wstring::npos)
|
||||
eol = L"\n";
|
||||
else if (clipboardStr.find(L"\r") != std::wstring::npos)
|
||||
eol = L"\r";
|
||||
else
|
||||
eol = getEOLString();
|
||||
|
||||
stringSplit(clipboardStr, eol, clipboardStrings);
|
||||
clipboardStrings.erase(clipboardStrings.cend() - 1); // remove the last empty string
|
||||
|
Loading…
x
Reference in New Issue
Block a user