Skip to content

Commit

Permalink
Windows: Accept indented and quoted native paths for editor command
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Mar 5, 2022
1 parent f6684d3 commit 4c63abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ QList< QList<QStringList> > parseCommands(const QString &cmd, const QStringList
bool percent = false;

// Ignore escape sequences if command starts with an unescaped Windows path.
const QRegularExpression reUnescapedWindowsPath(R"(^[a-zA-Z]:\\[^\\])");
const QRegularExpression reUnescapedWindowsPath(R"(^\s*['"]?[a-zA-Z]:\\[^\\])");
const bool allowEscape = !cmd.contains(reUnescapedWindowsPath);

for (int i = 0; i < cmd.size(); ++i) {
Expand Down

0 comments on commit 4c63abe

Please sign in to comment.