Remember line and column when opening file in a new instance
This commit is contained in:
parent
e4b0b8c0b5
commit
ee563e5dba
@ -3283,6 +3283,10 @@ void Notepad_plus::docOpenInNewInstance(FileTransferMode mode, int x, int y)
|
||||
command += pY;
|
||||
command += TEXT(" -l");
|
||||
command += ScintillaEditView::langNames[buf->getLangType()].lexerName;
|
||||
command += TEXT(" -n");
|
||||
command += to_wstring(_pEditView->getCurrentLineNumber() + 1);
|
||||
command += TEXT(" -c");
|
||||
command += to_wstring(_pEditView->getCurrentColumnNumber() + 1);
|
||||
|
||||
Command cmd(command);
|
||||
cmd.run(_pPublicInterface->getHSelf());
|
||||
|
Loading…
Reference in New Issue
Block a user