Minor fixes to the REPL when using libedit.

This commit is contained in:
John Wiegley 2009-02-04 19:58:56 -04:00
parent 2d941730b1
commit ea1e898eec
2 changed files with 3 additions and 2 deletions

View file

@ -222,7 +222,7 @@ int main(int argc, char * argv[], char * envp[])
#ifdef HAVE_LIBEDIT #ifdef HAVE_LIBEDIT
rl_readline_name = "Ledger"; rl_readline_name = const_cast<char *>("Ledger");
#if 0 #if 0
rl_attempted_completion_function = ledger_completion; rl_attempted_completion_function = ledger_completion;
#endif #endif

View file

@ -192,7 +192,8 @@ public:
std::cout << "Ledger " << ledger::version << ", the command-line accounting tool"; std::cout << "Ledger " << ledger::version << ", the command-line accounting tool";
std::cout << "\n\nCopyright (c) 2003-2009, John Wiegley. All rights reserved.\n\n\ 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\ 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; return NULL_VALUE;
} }