mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-21 02:51:01 +08:00
Bravely stop appending a newline in reader_shell_test
This newline apparently dates back to when we required all statements to be terminated; but our AST no longer requires that so we can remove this. No functional change expected here.
This commit is contained in:
parent
1dff1cb2c4
commit
e0a4d49ef3
|
@ -2646,12 +2646,7 @@ static eval_res_t reader_run_command(parser_t &parser, const wcstring &cmd) {
|
|||
return eval_res;
|
||||
}
|
||||
|
||||
static parser_test_error_bits_t reader_shell_test(const parser_t &parser, const wcstring &b) {
|
||||
wcstring bstr = b;
|
||||
|
||||
// Append a newline, to act as a statement terminator.
|
||||
bstr.push_back(L'\n');
|
||||
|
||||
static parser_test_error_bits_t reader_shell_test(const parser_t &parser, const wcstring &bstr) {
|
||||
parse_error_list_t errors;
|
||||
parser_test_error_bits_t res =
|
||||
parse_util_detect_errors(bstr, &errors, true /* do accept incomplete */);
|
||||
|
|
Loading…
Reference in New Issue
Block a user