diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/editor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/editor.c b/src/editor.c index 6f312e0..1247e67 100644 --- a/src/editor.c +++ b/src/editor.c @@ -56,7 +56,9 @@ static edit_status editor_complete_next (rp_input_line *line); static edit_status editor_insert (rp_input_line *line, char *keysym_buf); +#ifdef HAVE_HISTORY static char *saved_command = NULL; +#endif typedef struct edit_binding edit_binding; @@ -466,8 +468,10 @@ editor_insert (rp_input_line *line, char *keysym_buf) static edit_status editor_enter (rp_input_line *line) { +#ifdef HAVE_HISTORY int result; char *expansion; +#endif line->buffer[line->length] = '\0'; #ifdef HAVE_HISTORY |