>From c867eda9b60736b0d3ae50d5a5f889e80cf25a81 Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Tue, 14 Oct 2014 20:07:31 +0200 Subject: [PATCH] contrib/lisp/org-velocity: Fix failure for big window * contrib/lisp/org-velocity.el (org-velocity-incremental-read): Reversed the estimation against window-height. --- contrib/lisp/org-velocity.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/org-velocity.el b/contrib/lisp/org-velocity.el index 3631a59..e6788c6 100644 --- a/contrib/lisp/org-velocity.el +++ b/contrib/lisp/org-velocity.el @@ -671,7 +671,7 @@ Stop searching once there are more matches than can be displayed." ;; Truncate the index to the size of the buffer to be ;; displayed. (with-selected-window match-window - (if (> (window-height) (length org-velocity-index)) + (if (< (window-height) (length org-velocity-index)) ;; (subseq org-velocity-index 0 (window-height)) (let ((hints (copy-sequence org-velocity-index))) (setcdr (nthcdr (window-height) hints) nil) -- 2.1.2