diff --git a/cmd-parse.y b/cmd-parse.y index e2c250e18..a03da825f 100644 --- a/cmd-parse.y +++ b/cmd-parse.y @@ -1174,9 +1174,9 @@ cmd_parse_print_string(char **buf, struct cmd_parse_node *string) } static const char * -cmd_parse_print_separator(u_int depth, int flags) +cmd_parse_print_separator(u_int depth) { - if ((~flags & CMD_PARSE_PRINT_MULTILINE) && depth == 0) + if (depth == 0) return (" \\; "); return (" ; "); } @@ -1318,7 +1318,7 @@ cmd_parse_print_sequence(char **buf, struct cmd_parse_node *seq, u_int depth, int flags) { struct cmd_parse_node *child, *first_child; - const char *sep = cmd_parse_print_separator(depth, flags); + const char *sep = cmd_parse_print_separator(depth); int first = 1; /* diff --git a/regress/cmd-parse-print.sh b/regress/cmd-parse-print.sh index 01ad5e37f..cfd332225 100755 --- a/regress/cmd-parse-print.sh +++ b/regress/cmd-parse-print.sh @@ -62,7 +62,7 @@ bind-key -T parsetest b display-message 'hello world' bind-key -T parsetest c display-message 'literal $HOME #{p} ~' bind-key -T parsetest d display-message '' bind-key -T parsetest e display-message '#{pane_id}' -bind-key -T parsetest f display-message a ; display-message b +bind-key -T parsetest f display-message a \; display-message b bind-key -T parsetest g display-message one display-message two bind-key -T parsetest h if-shell true {