From ea1e898eec5fc643c373c84094ead3f2e8a74d5a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Feb 2009 19:58:56 -0400 Subject: Minor fixes to the REPL when using libedit. --- src/main.cc | 2 +- src/session.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index 3cdc6cf4..63115dd3 100644 --- a/src/main.cc +++ b/src/main.cc @@ -222,7 +222,7 @@ int main(int argc, char * argv[], char * envp[]) #ifdef HAVE_LIBEDIT - rl_readline_name = "Ledger"; + rl_readline_name = const_cast("Ledger"); #if 0 rl_attempted_completion_function = ledger_completion; #endif diff --git a/src/session.h b/src/session.h index 2b33cb8d..3c441ef1 100644 --- a/src/session.h +++ b/src/session.h @@ -192,7 +192,8 @@ public: std::cout << "Ledger " << ledger::version << ", the command-line accounting tool"; std::cout << "\n\nCopyright (c) 2003-2009, John Wiegley. All rights reserved.\n\n\ This program is made available under the terms of the BSD Public License.\n\ -See LICENSE file included with the distribution for details and disclaimer.\n"; +See LICENSE file included with the distribution for details and disclaimer."; + std::cout << std::endl; return NULL_VALUE; } -- cgit v1.2.3