Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only add non-empty lines to readline history

  • Loading branch information...
commit 1d19ddd63cdb39c5f9e25d800a3ce13464acf71e 1 parent 7d8ad03
@programble authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/main.c
View
3  src/main.c
@@ -82,7 +82,8 @@ void main_repl(bool prompt, context *ctx)
parse_eval_print(p, ctx);
talloc_free(p);
- add_history(line);
+ if (*line)
+ add_history(line);
READLINE_FREE(line);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.