Skip to content

Commit

Permalink
Allow # in file mode variable string.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jul 9, 2024
1 parent fe29167 commit 29b5856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7624,7 +7624,7 @@ bool FileVars_ParseStr(LPCSTR pszData, LPCSTR pszName, char *pszValue, int cchVa
strncpy(tch, pvStart, COUNTOF(tch) - 1);

char *pvEnd = tch;
while (IsAlphaNumeric(*pvEnd) || *pvEnd == '+' || *pvEnd == '-' || *pvEnd == '/' || *pvEnd == '_' || (bQuoted && *pvEnd == ' ')) {
while (IsAlphaNumeric(*pvEnd) || *pvEnd == '+' || *pvEnd == '-' || *pvEnd == '/' || *pvEnd == '_' || *pvEnd == '#' || (bQuoted && *pvEnd == ' ')) {
pvEnd++;
}
*pvEnd = '\0';
Expand Down

0 comments on commit 29b5856

Please sign in to comment.