aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-06 13:36:51 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-06 13:36:51 -0700
commit71a8d39372936ef52da45cb368eb314ec120b2c6 (patch)
treebd02abd8160ada9695c9213a1bdcea45343123a8 /parser.h
parent90826e403121c7d878ba1ce4aa172ac5e96afeb5 (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.h7
1 files changed, 5 insertions, 2 deletions
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<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;