Remember line and column when opening file in a new instance

This commit is contained in:
Rikk 2015-08-12 22:23:20 -03:00 committed by Don Ho
parent e4b0b8c0b5
commit ee563e5dba

View File

@ -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());