diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-06 13:36:51 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-06 13:36:51 -0700 |
commit | 71a8d39372936ef52da45cb368eb314ec120b2c6 (patch) | |
tree | bd02abd8160ada9695c9213a1bdcea45343123a8 /parser.h | |
parent | 90826e403121c7d878ba1ce4aa172ac5e96afeb5 (diff) |
Fix to restore completions that use command substitution (like cd)
Fix to adopt the same escaping code for both completions and autosuggestions
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |