[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master aef1242 118/399: ivy-overlay.el (ivy-overlay-impossible-p)
From: |
Oleh Krehel |
Subject: |
[elpa] master aef1242 118/399: ivy-overlay.el (ivy-overlay-impossible-p): Simplify |
Date: |
Sat, 20 Jul 2019 14:57:03 -0400 (EDT) |
branch: master
commit aef1242b86aaffc9bab4a7c553ce9d003e754f53
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy-overlay.el (ivy-overlay-impossible-p): Simplify
Avoid situation where `ivy-overlay-impossible-p' changes value as the
user types new input. The overlay will fit anyway because of
`ivy--trucate-string'.
---
ivy-overlay.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ivy-overlay.el b/ivy-overlay.el
index 5a2e5e7..1d4305c 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -88,16 +88,14 @@ Then attach the overlay to the character before point."
(declare-function ivy-state-window "ivy")
(declare-function ivy--remove-prefix "ivy")
-(defun ivy-overlay-impossible-p (str)
+(defun ivy-overlay-impossible-p (_str)
(or
(and (eq major-mode 'org-mode)
(plist-get (text-properties-at (point)) 'src-block))
(<= (window-height) (+ ivy-height 3))
(= (point) (point-min))
(< (- (+ (window-width) (window-hscroll)) (current-column))
- (apply #'max
- (mapcar #'string-width
- (split-string str "\n"))))))
+ 30)))
(defun ivy-display-function-overlay (str)
"Called from the minibuffer, display STR in an overlay in Ivy window.
- [elpa] master 6373a48 105/399: counsel.el: Fix compiler warning, (continued)
- [elpa] master 6373a48 105/399: counsel.el: Fix compiler warning, Oleh Krehel, 2019/07/20
- [elpa] master 164fecb 108/399: Make find-file-occur work with multi-pass regex builders, Oleh Krehel, 2019/07/20
- [elpa] master 3b677d4 113/399: counsel.el (counsel-file-jump-args): Fix dotfiles not being shown, Oleh Krehel, 2019/07/20
- [elpa] master ffa2d8f 112/399: counsel.el (counsel-unicode-char): Fix sorting, Oleh Krehel, 2019/07/20
- [elpa] master 18d7f84 117/399: counsel.el (counsel-yank-pop-action): Also works for strings, Oleh Krehel, 2019/07/20
- [elpa] master c56ad2a 114/399: ivy-hydra.el (ivy-dispatching-done-hydra): Improve, Oleh Krehel, 2019/07/20
- [elpa] master 344aebc 116/399: counsel.el (counsel-dired-jump): Improve, Oleh Krehel, 2019/07/20
- [elpa] master b27ef9e 111/399: counsel.el (counsel-git-cands): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 1b5af1e 115/399: counsel.el (counsel-file-jump-args): Adjust, Oleh Krehel, 2019/07/20
- [elpa] master 05763ae 121/399: counsel.el (counsel-git): Fix default-directory, Oleh Krehel, 2019/07/20
- [elpa] master aef1242 118/399: ivy-overlay.el (ivy-overlay-impossible-p): Simplify,
Oleh Krehel <=
- [elpa] master 3cb9d72 120/399: ivy-overlay.el (ivy-display-function-overlay): Fix weird offset, Oleh Krehel, 2019/07/20
- [elpa] master ea6ef81 122/399: Allow recursive minibuffers to use ivy-display-function-alist, Oleh Krehel, 2019/07/20
- [elpa] master 5e54abd 123/399: Fix counsel-org-tag-agenda, Oleh Krehel, 2019/07/20
- [elpa] master 1998783 125/399: counsel.el (counsel-find-file-ignore-regexp): Add nested hidden dotfiles, Oleh Krehel, 2019/07/20
- [elpa] master bb5d0d4 119/399: ivy-overlay.el (ivy-display-function-overlay): Refactor, Oleh Krehel, 2019/07/20
- [elpa] master f9b64c3 126/399: swiper.el (swiper-isearch): Add, Oleh Krehel, 2019/07/20
- [elpa] master 1606918 129/399: ivy.el (ivy-read): Allow :update-fn to be 'auto, Oleh Krehel, 2019/07/20
- [elpa] master f4431d4 133/399: doc/ivy.org (automatically integrated packages): Add, Oleh Krehel, 2019/07/20
- [elpa] master 0465711 124/399: counsel.el (counsel-org-tag-agenda): Check org-version, Oleh Krehel, 2019/07/20
- [elpa] master 3416142 128/399: counsel.el (counsel--async-sentinel): Fix index jumping randomly, Oleh Krehel, 2019/07/20