mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 14:54:39 +02:00
[UPDATE] "Split Lines" uses the edgemode if enabled
This commit is contained in:
parent
ee2dbc251d
commit
ec2bb7f8b7
@ -1019,7 +1019,10 @@ void Notepad_plus::command(int id)
|
||||
|
||||
case IDM_EDIT_SPLIT_LINES:
|
||||
_pEditView->execute(SCI_TARGETFROMSELECTION);
|
||||
_pEditView->execute(SCI_LINESSPLIT);
|
||||
if (_pEditView->execute(SCI_GETEDGEMODE) == EDGE_NONE)
|
||||
_pEditView->execute(SCI_LINESSPLIT);
|
||||
else
|
||||
_pEditView->execute(SCI_LINESSPLIT, _pEditView->execute(SCI_TEXTWIDTH, STYLE_LINENUMBER, (LPARAM)"P") * _pEditView->execute(SCI_GETEDGECOLUMN));
|
||||
break;
|
||||
|
||||
case IDM_EDIT_JOIN_LINES:
|
||||
|
Loading…
x
Reference in New Issue
Block a user