From ec2bb7f8b7b4c271239c81e43df2e990da58e973 Mon Sep 17 00:00:00 2001 From: dail8859 Date: Tue, 28 Apr 2015 20:45:11 -0400 Subject: [PATCH] [UPDATE] "Split Lines" uses the edgemode if enabled --- PowerEditor/src/NppCommands.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index bd75c272f..40599a21e 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -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: