We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f1bc2 commit 40ace7aCopy full SHA for 40ace7a
src/bin/psql/input.c
@@ -348,7 +348,7 @@ initializeInput(int flags)
348
initialize_readline();
349
#ifndef HAVE_WIN32_LIBEDIT
350
rl_initialize();
351
-#endif
+#endif
352
353
useHistory = true;
354
using_history();
@@ -368,7 +368,11 @@ initializeInput(int flags)
368
if (histfile == NULL)
369
{
370
if (get_home_path(home))
371
+#ifdef HAVE_WIN32_LIBEDIT
372
+ psql_history = psprintf("%s\\%s", home, PSQLHISTORY);
373
+#else
374
psql_history = psprintf("%s/%s", home, PSQLHISTORY);
375
376
}
377
else
378
0 commit comments