Revert "for now disable shell history on windows"

This reverts commit 25f1581767.
This commit is contained in:
Mathias Stearn
2011-03-18 14:54:19 -05:00
parent 8c8c3368df
commit bfcfc759ea

View File

@@ -99,8 +99,8 @@ void shellHistoryInit() {
ss << ".dbshell";
historyFile = ss.str();
#ifdef USE_TABCOMPLETION
linenoiseHistoryLoad( (char*)historyFile.c_str() );
#ifdef USE_TABCOMPLETION
linenoiseSetCompletionCallback( completionHook );
#endif
@@ -109,12 +109,12 @@ void shellHistoryInit() {
#endif
}
void shellHistoryDone() {
#ifdef USE_TABCOMPLETION
#ifdef USE_LINENOISE
linenoiseHistorySave( (char*)historyFile.c_str() );
#endif
}
void shellHistoryAdd( const char * line ) {
#ifdef USE_TABCOMPLETION
#ifdef USE_LINENOISE
if ( line[0] == '\0' )
return;