From bd3036df8aebbdad882b1ec8fd12c832133efdec Mon Sep 17 00:00:00 2001 From: abitmore Date: Fri, 3 May 2019 09:46:13 -0400 Subject: [PATCH] Increase CLI command history buffer size to 256 --- src/rpc/cli.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index ed0ae30..5e25f97 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -56,6 +56,11 @@ void cli::send_notice( uint64_t callback_id, variants args /* = variants() */ ) void cli::start() { cli_commands() = get_method_names(0); + +#ifdef HAVE_EDITLINE +el_hist_size = 256; +#endif + _run_complete = fc::async( [&](){ run(); } ); }