aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-26 13:24:10 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-26 13:24:10 -0800
commit6536ffe178922750756e860561c2205513067b3b (patch)
tree10c92338e601287d8fb576461dc82a96f4433820 /reader.cpp
parent562946d055080ad52b8c13b9c9f6a02e7b8c029b (diff)
Facilities for turning on new AST-based parser.
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/reader.cpp b/reader.cpp
index 5186b787..5c5b094d 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -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();