瀏覽代碼

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

* contrib/lisp/org-velocity.el (org-velocity-incremental-read): Reversed
  the estimation against window-height.
Marco Wahl 10 年之前
父節點
當前提交
25d50e1d3c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/lisp/org-velocity.el

+ 1 - 1
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)