aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorDavid Aspinall2002-09-11 21:37:22 +0000
committerDavid Aspinall2002-09-11 21:37:22 +0000
commitce6f74bf9f5d46f33b5da23ead338d13985d9e39 (patch)
tree603670408e759c9a27c575033ab5851124a46292 /generic
parent293b1b2b572e48967137c66909218599f4770923 (diff)
Don't insert blank line at top of response buffer.
Diffstat (limited to 'generic')
-rw-r--r--generic/pg-response.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/pg-response.el b/generic/pg-response.el
index 731552fb..0f00e07a 100644
--- a/generic/pg-response.el
+++ b/generic/pg-response.el
@@ -161,7 +161,10 @@ Returns non-nil if response buffer was cleared."
;; the other cases when messages are inserted and to cope
;; with warnings after delayed output (non newline terminated).
(goto-char (point-max))
- (newline)
+ ;; insert a newline before the new message unless the
+ ;; buffer is empty
+ (unless (eq (point-min) (point-max))
+ (newline))
(setq start (point))
(insert str)
(unless (bolp) (newline))