Add \n to end of output for psql \s with no history file name.
authorBruce Momjian <[email protected]>
Tue, 30 Nov 2004 20:00:34 +0000 (20:00 +0000)
committerBruce Momjian <[email protected]>
Tue, 30 Nov 2004 20:00:34 +0000 (20:00 +0000)
This prevents the next psql prompt from showing up on the end of the
last history line.

src/bin/psql/command.c

index ff5b08dc064ce1607a847dd7a803d962904d51fa..dc7e37567aea06cd3c7da09f40d4642adff4f941 100644 (file)
@@ -648,6 +648,8 @@ exec_command(const char *cmd,
 
                if (success && !quiet && fname)
                        printf(gettext("Wrote history to file \"%s\".\n"), fname);
+               if (!fname)
+                       putchar('\n');
                free(fname);
        }