Revert "Escape separators (colon and equals) to improve completion"

This reverts commit f7dac82ed6 from pull
request #6059.

As discussed in #6099, this caused a regression in some completions (eg
dd).
This commit is contained in:
David Adam
2019-09-19 14:32:40 +08:00
parent b7dd060dec
commit 3ae12ac4d3
6 changed files with 13 additions and 24 deletions

View File

@@ -523,8 +523,7 @@ void parse_util_get_parameter_info(const wcstring &cmd, const size_t pos, wchar_
wcstring parse_util_escape_string_with_quote(const wcstring &cmd, wchar_t quote, bool no_tilde) {
wcstring result;
if (quote == L'\0') {
escape_flags_t flags =
ESCAPE_ALL | ESCAPE_NO_QUOTED | (no_tilde ? ESCAPE_NO_TILDE : 0) | ESCAPE_SEPARATORS;
escape_flags_t flags = ESCAPE_ALL | ESCAPE_NO_QUOTED | (no_tilde ? ESCAPE_NO_TILDE : 0);
result = escape_string(cmd, flags);
} else {
// Here we are going to escape a string with quotes.