Fix to restore completions that use command substitution (like cd)

Fix to adopt the same escaping code for both completions and autosuggestions
This commit is contained in:
ridiculousfish
2012-05-06 13:36:51 -07:00
parent 90826e4031
commit 71a8d39372
5 changed files with 18 additions and 165 deletions

View File

@@ -269,9 +269,12 @@ class parser_t {
enum parser_type_t parser_type;
std::vector<block_t> blocks;
/** Whether or not we output errors */
const bool show_errors;
/** Last error code */
int error_code;
/** Position of last error */
int err_pos;
@@ -330,7 +333,7 @@ class parser_t {
static parser_t &principal_parser();
/** Create a parser of the given type */
parser_t(enum parser_type_t type);
parser_t(enum parser_type_t type, bool show_errors);
/** The current innermost block, allocated with new */
block_t *current_block;