mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-07 05:54:40 +02:00
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 += pY;
|
||||||
command += TEXT(" -l");
|
command += TEXT(" -l");
|
||||||
command += ScintillaEditView::langNames[buf->getLangType()].lexerName;
|
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);
|
Command cmd(command);
|
||||||
cmd.run(_pPublicInterface->getHSelf());
|
cmd.run(_pPublicInterface->getHSelf());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user