|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2006, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.77 2006/06/05 14:47:38 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.78 2006/06/07 13:18:37 momjian Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"mainloop.h"
|
@@ -309,7 +309,7 @@ MainLoop(FILE *source)
|
309 | 309 | if (!line_saved_in_history&&pset.cur_cmd_interactive)
|
310 | 310 | {
|
311 | 311 | /* Sending a command (PSQL_CMD_SEND) zeros the length */
|
312 |
| -if (scan_result==PSCAN_BACKSLASH&&history_buf->len!=0) |
| 312 | +if (scan_result==PSCAN_BACKSLASH) |
313 | 313 | pg_write_history(line);
|
314 | 314 | else
|
315 | 315 | pg_append_history(line,history_buf);
|
|