Fix cmdline '-n' param not working and wrong cursor position regression

When file is opened via "Edit with Notepad++", cursor position is placed on the 2nd position instead of the first.
This fixes the signed/unsigned mismatch there arisen from the current 2GB+ changes.

Fix #11131, close #11132
This commit is contained in:
xomx 2022-02-05 02:48:36 +01:00 committed by Don Ho
parent 9fccc37987
commit deb99ae45b
1 changed files with 1 additions and 1 deletions

View File

@ -6125,7 +6125,7 @@ std::vector<generic_string> Notepad_plus::loadCommandlineParams(const TCHAR * co
generic_string udl = pCmdParams->_udlName;
int lineNumber = pCmdParams->_line2go;
int columnNumber = pCmdParams->_column2go;
size_t positionNumber = pCmdParams->_pos2go;
intptr_t positionNumber = pCmdParams->_pos2go;
bool recursive = pCmdParams->_isRecursive;
bool readOnly = pCmdParams->_isReadOnly;
bool openFoldersAsWorkspace = pCmdParams->_openFoldersAsWorkspace;