notepad-plus-plus-legacy/PowerEditor
Rajendra Singh c16f7bbc1e
Fix a regression regarding notepad replacement issue
Fixed command line parsing logic error.

Root cause:
When you double click a file (where NPP has already replaced original Windows Notepad.exe) command like something like below is generated -

-notepadStyleCmdline -z "C:\WINDOWS\system32\NOTEPAD.EXE" F:\FakePath\PowerEditor\bin\change.log

After processing this command line, final command line is left as " F:\FakePath\PowerEditor\bin\change.log while others are ignored. Notice, quote " here just before the actual file path.

Later on, MS PAI ::PathIsRelative treats it as relative path because of quote " rather considering single file. It is expected too as per input to this API.

Now, notepad++ tries to open all the file from path F:\FakePath\PowerEditor\bin\ (in above case) along with file F:\FakePath\PowerEditor\bin\change.log.

Close #6215, fix #6211
2019-10-14 02:18:12 +02:00
..
bin Notepad++ 7.8 release 2019-10-11 01:41:48 +02:00
gcc MinGW GCC update 2016-10-31 14:03:29 +01:00
installer Fix include new release files problem 2019-10-02 03:36:26 +02:00
misc/chameleon Remove the old icon 2016-09-21 09:06:22 +02:00
scintilla.original.forUpdating Upgrade Scintilla from 4.1.4 to 4.2.0 2019-07-22 13:08:41 +02:00
src Fix a regression regarding notepad replacement issue 2019-10-14 02:18:12 +02:00
Test/FunctionList Remove BOM from 2 localization files 2019-03-15 03:13:31 +01:00
visual.net Use standard C++11 mutex 2019-08-25 23:34:30 +02:00