diff options
author | 2013-12-26 13:24:10 -0800 | |
---|---|---|
committer | 2013-12-26 13:24:10 -0800 | |
commit | 6536ffe178922750756e860561c2205513067b3b (patch) | |
tree | 10c92338e601287d8fb576461dc82a96f4433820 /reader.cpp | |
parent | 562946d055080ad52b8c13b9c9f6a02e7b8c029b (diff) |
Facilities for turning on new AST-based parser.
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -3398,12 +3398,9 @@ const wchar_t *reader_readline(void) case 0: { /* Finished command, execute it. Don't add items that start with a leading space. */ - if (! data->command_line.empty() && data->command_line.at(0) != L' ') + if (data->history != NULL && ! data->command_line.empty() && data->command_line.at(0) != L' ') { - if (data->history != NULL) - { - data->history->add_with_file_detection(data->command_line); - } + data->history->add_with_file_detection(data->command_line); } finished=1; data->buff_pos=data->command_length(); |