Skip to content

Commit

Permalink
+fix: accept file args with leading dash (needs quotes in any dash case)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiKoHoff committed May 21, 2024
1 parent 6835a69 commit fe1bfc6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Notepad3.c
Original file line number Diff line number Diff line change
Expand Up @@ -9400,6 +9400,8 @@ void ParseCommandLine()

while (bContinue && ExtractFirstArgument(lp3, lp1, lp2, (int)len)) {
// options
size_t const lp3_len = StringCchLen(lp3, len);
bIsFileArg = bIsFileArg || (lp3[0] == L'"') && (lp3[lp3_len - 1] == L'"');
if (!bIsFileArg && (lp1[0] == L'+') && (lp1[1] == L'\0')) {
Globals.CmdLnFlag_MultiFileArg = 2;
bIsFileArg = true;
Expand Down
10 changes: 10 additions & 0 deletions test/test_files/StyleLexers/styleLexHTML/Design.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,16 @@ <h3>
does not follow platform conventions well. A second API could be implemented here that did
follow platform conventions.
</p>

<?php
// Assign the value "Hello!" to the variable "greeting"
$greeting = "Hello!";
// Assign the value 8 to the variable "month"
$month = 8;
// Assign the value 2019 to the variable "year"
$year = 2019;
?>

</body>
</html>

0 comments on commit fe1bfc6

Please sign in to comment.