contrib/lisp/org-velocity: Fix failure for big window

* contrib/lisp/org-velocity.el (org-velocity-incremental-read): Reversed
  the estimation against window-height.
This commit is contained in:
Marco Wahl 2014-10-14 20:07:31 +02:00 committed by Bastien Guerry
parent eb973f90a9
commit 25d50e1d3c

View file

@ -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 ;; Truncate the index to the size of the buffer to be
;; displayed. ;; displayed.
(with-selected-window match-window (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)) ;; (subseq org-velocity-index 0 (window-height))
(let ((hints (copy-sequence org-velocity-index))) (let ((hints (copy-sequence org-velocity-index)))
(setcdr (nthcdr (window-height) hints) nil) (setcdr (nthcdr (window-height) hints) nil)