Merge pull request #12 from dail8859/splitlines

[ENHANCEMENT] "Split Lines" uses the edge mode if enabled.
This commit is contained in:
Don HO 2015-05-24 19:18:59 +02:00
commit f7e5be4e2b

View File

@ -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: