# HG changeset patch # User Bryan O'Sullivan # Date 1178650479 25200 # Node ID fa51e66117b4a07cff181d40a005320f3508569a # Parent b59611e9dd640400a8400fbe9e5bc998b1cd94c5 mq.el: don't fill half the screen with a single line of output. diff --git a/contrib/mq.el b/contrib/mq.el --- a/contrib/mq.el +++ b/contrib/mq.el @@ -147,7 +147,8 @@ If PATCH is nil, push at most one patch. (if patch (list patch)))) last-line (mq-last-line)) (let ((lines (count-lines (point-min) (point-max)))) - (if (and (equal lines 2) (string-match "Now at:" last-line)) + (if (or (<= lines 1) + (and (equal lines 2) (string-match "Now at:" last-line))) (progn (kill-buffer (current-buffer)) (delete-window))