diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-04 19:58:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-04 19:58:56 -0400 |
commit | ea1e898eec5fc643c373c84094ead3f2e8a74d5a (patch) | |
tree | 944cd6d5c9d7ebaccf55b2beaea3671767b5e077 | |
parent | 2d941730b1c60342be5b108d2d654723b3b7c2cb (diff) | |
download | fork-ledger-ea1e898eec5fc643c373c84094ead3f2e8a74d5a.tar.gz fork-ledger-ea1e898eec5fc643c373c84094ead3f2e8a74d5a.tar.bz2 fork-ledger-ea1e898eec5fc643c373c84094ead3f2e8a74d5a.zip |
Minor fixes to the REPL when using libedit.
-rw-r--r-- | src/main.cc | 2 | ||||
-rw-r--r-- | 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<char *>("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; } |