aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-06-04 04:35:55 +0000
committerBruce Momjian <bruce@momjian.us>2006-06-04 04:35:55 +0000
commita837851dc060515c1f7023f74d75156a80c2c936 (patch)
treee7847ec71151f00650e82e7bda9c9114af88f274 /src
parentf6dc20e109ae5f145f5cf564f420b5e322954195 (diff)
downloadpostgresql-a837851dc060515c1f7023f74d75156a80c2c936.tar.gz
postgresql-a837851dc060515c1f7023f74d75156a80c2c936.zip
Fix psql so \r is separate in the history, rather than at the end of
the query.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/mainloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c
index edaa372c60d..e5438132364 100644
--- a/src/bin/psql/mainloop.c
+++ b/src/bin/psql/mainloop.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.74 2006/03/21 13:38:12 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.75 2006/06/04 04:35:55 momjian Exp $
*/
#include "postgres_fe.h"
#include "mainloop.h"
@@ -306,7 +306,7 @@ MainLoop(FILE *source)
if (first_query_scan && pset.cur_cmd_interactive)
{
/* Sending a command (PSQL_CMD_SEND) zeros the length */
- if (scan_result == PSCAN_BACKSLASH && query_buf->len != 0)
+ if (scan_result == PSCAN_BACKSLASH && history_buf->len != 0)
pg_write_history(line);
else
pg_append_history(line, history_buf);