mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
Fix rectangular selection copy-paste bug
Restore old paste into rectangular selection behavior: only call pasteIntoMultiSelection for multiple stream selections and not for rectangular selections. Fix #15139, fix #15151, close #15261
This commit is contained in:
parent
dc53d1b7a7
commit
f2e5739d4d
@ -487,7 +487,8 @@ void Notepad_plus::command(int id)
|
|||||||
size_t nbSelections = _pEditView->execute(SCI_GETSELECTIONS);
|
size_t nbSelections = _pEditView->execute(SCI_GETSELECTIONS);
|
||||||
Buffer* buf = getCurrentBuffer();
|
Buffer* buf = getCurrentBuffer();
|
||||||
bool isRO = buf->isReadOnly();
|
bool isRO = buf->isReadOnly();
|
||||||
if (nbSelections > 1 && !isRO)
|
LRESULT selectionMode = _pEditView->execute(SCI_GETSELECTIONMODE);
|
||||||
|
if (nbSelections > 1 && !isRO && selectionMode == SC_SEL_STREAM)
|
||||||
{
|
{
|
||||||
bool isPasteDone = _pEditView->pasteToMultiSelection();
|
bool isPasteDone = _pEditView->pasteToMultiSelection();
|
||||||
if (isPasteDone)
|
if (isPasteDone)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user