mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-25 02:47:56 +02:00
Fix column mode pasting to multi-selection issue due to different EOL
Fix #16889
This commit is contained in:
parent
68c27fb143
commit
f44795a69e
@ -4862,7 +4862,14 @@ bool ScintillaEditView::pasteToMultiSelection() const
|
||||
::CloseClipboard();
|
||||
|
||||
vector<wstring> clipboardStrings;
|
||||
stringSplit(clipboardStr, getEOLString(), clipboardStrings);
|
||||
|
||||
wstring eol = L"\r\n";
|
||||
if (clipboardStr.find(L"\n") != std::wstring::npos)
|
||||
eol = L"\n";
|
||||
else if (clipboardStr.find(L"\r") != std::wstring::npos)
|
||||
eol = L"\r";
|
||||
|
||||
stringSplit(clipboardStr, eol, clipboardStrings);
|
||||
clipboardStrings.erase(clipboardStrings.cend() - 1); // remove the last empty string
|
||||
size_t nbClipboardStr = clipboardStrings.size();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user