From 71a8d39372936ef52da45cb368eb314ec120b2c6 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 6 May 2012 13:36:51 -0700 Subject: Fix to restore completions that use command substitution (like cd) Fix to adopt the same escaping code for both completions and autosuggestions --- parser.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'parser.h') diff --git a/parser.h b/parser.h index 5ce83292..ca97fc73 100644 --- a/parser.h +++ b/parser.h @@ -269,9 +269,12 @@ class parser_t { enum parser_type_t parser_type; std::vector 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; -- cgit v1.2.3