Index: src/bin/psql/mainloop.c
===================================================================
RCS file: /cvsroot/pgsql/src/bin/psql/mainloop.c,v
retrieving revision 1.74
diff -c -c -r1.74 mainloop.c
*** src/bin/psql/mainloop.c	21 Mar 2006 13:38:12 -0000	1.74
--- src/bin/psql/mainloop.c	4 Jun 2006 04:33:34 -0000
***************
*** 306,312 ****
  			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)
  					pg_write_history(line);
  				else
  					pg_append_history(line, history_buf);
--- 306,312 ----
  			if (first_query_scan && pset.cur_cmd_interactive)
  			{
  				/* Sending a command (PSQL_CMD_SEND) zeros the length */
! 				if (scan_result == PSCAN_BACKSLASH && history_buf->len != 0)
  					pg_write_history(line);
  				else
  					pg_append_history(line, history_buf);
