summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-05-11 18:50:35 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-05-11 18:50:35 -0400
commit4791c4a8f3474ee58531b8c88bfbac622dcc286d (patch)
tree35931fcd7af4e7c42191edbda93fbbcebbf9f2d6 /parse.c
parent815b63fd3a630eb462e7ab9d8af09f19e129a5af (diff)
downloadbfs-4791c4a8f3474ee58531b8c88bfbac622dcc286d.tar.xz
Don't make -quit disable the implicit -print
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 4a7fbe0..6d15792 100644
--- a/parse.c
+++ b/parse.c
@@ -623,7 +623,7 @@ static struct expr *parse_unary_test(struct parser_state *state, eval_fn *eval)
* Parse a single action.
*/
static struct expr *parse_action(struct parser_state *state, eval_fn *eval, size_t argc) {
- if (eval != eval_nohidden && eval != eval_prune) {
+ if (eval != eval_nohidden && eval != eval_prune && eval != eval_quit) {
state->implicit_print = false;
}