[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master bfddbc2 199/348: ivy-overlay.el (ivy-display-function-over
From: |
Oleh Krehel |
Subject: |
[elpa] master bfddbc2 199/348: ivy-overlay.el (ivy-display-function-overlay): Fix up |
Date: |
Sat, 8 Apr 2017 11:03:56 -0400 (EDT) |
branch: master
commit bfddbc2186e1e755b253f57c5b08737a47b05d3c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy-overlay.el (ivy-display-function-overlay): Fix up
Don't call `ivy-left-pad' with a negative arg.
This change should theoretically enable you to:
(setq ivy-display-function 'ivy-display-function-overlay)
Note that this isn't recommended: things go crazy for `swiper' etc.
`'ivy-display-function-overlay' is best used only for in-line
completion (e.g. `complete-symbol').
Fixes #707
---
ivy-overlay.el | 5 ++++-
ivy.el | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ivy-overlay.el b/ivy-overlay.el
index a4eae2e..2020d08 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -85,7 +85,10 @@ Hide the minibuffer contents and cursor."
(+ (if (eq major-mode 'org-mode)
(* org-indent-indentation-per-level (org-current-level))
0)
- (- ivy-completion-beg ivy-completion-end)
+ (if (eq (ivy-state-caller ivy-last)
+ 'ivy-completion-in-region)
+ (- ivy-completion-beg ivy-completion-end)
+ 0)
(current-column))))))
(add-face-text-property cursor-pos (1+ cursor-pos)
'ivy-cursor t overlay-str)
diff --git a/ivy.el b/ivy.el
index 093c5e8..6a65ad7 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1460,6 +1460,7 @@ customizations apply to the current completion session."
(cdr (symbol-value hist))))))))
ivy--current))
(remove-hook 'post-command-hook #'ivy--exhibit)
+ (ivy-overlay-cleanup)
(when (setq unwind (ivy-state-unwind ivy-last))
(funcall unwind))
(unless (eq ivy-exit 'done)
- [elpa] master 6b574e4 173/348: ivy.el (ivy-call): expand-file-name, (continued)
- [elpa] master 6b574e4 173/348: ivy.el (ivy-call): expand-file-name, Oleh Krehel, 2017/04/08
- [elpa] master 93f9321 174/348: ivy.el: Fix byte compiler warnings, Oleh Krehel, 2017/04/08
- [elpa] master 2a9c3f3 191/348: swiper.el (swiper-multi): Don't use virtual buffers, Oleh Krehel, 2017/04/08
- [elpa] master 3a7c8cd 189/348: counsel.el (counsel-recentf): add extra actions, Oleh Krehel, 2017/04/08
- [elpa] master 955585e 190/348: counsel.el (counsel-describe-face): Ensure :preselect string, Oleh Krehel, 2017/04/08
- [elpa] master 3c904fa 192/348: counsel.el (counsel-git-grep-occur): Fix "g", Oleh Krehel, 2017/04/08
- [elpa] master 77ebfdb 196/348: Makefile: load ivy-overlay.el, Oleh Krehel, 2017/04/08
- [elpa] master f357cd2 198/348: ivy-overlay.el (ivy-overlay-cleanup): Restore cursor-type, Oleh Krehel, 2017/04/08
- [elpa] master f8d78eb 197/348: Add a fake cursor to inline completion display, Oleh Krehel, 2017/04/08
- [elpa] master 1bdc50b 200/348: ivy-overlay.el (ivy-overlay-cleanup): Don't trigger company, Oleh Krehel, 2017/04/08
- [elpa] master bfddbc2 199/348: ivy-overlay.el (ivy-display-function-overlay): Fix up,
Oleh Krehel <=
- [elpa] master d1de20f 193/348: Display completion-at-point at point, Oleh Krehel, 2017/04/08
- [elpa] master 8109655 204/348: ivy-overlay.el (ivy-display-function-overlay): Fix with-ivy-window, Oleh Krehel, 2017/04/08
- [elpa] master 572c2aa 206/348: Enable read-only-mode for ivy-occur, Oleh Krehel, 2017/04/08
- [elpa] master 73d23d1 207/348: Correct a minor doc error: `info-describe-symbol' should be `info-lookup-symbol'., Oleh Krehel, 2017/04/08
- [elpa] master 378943c 212/348: ivy.el (ivy--minibuffer-setup): Fixup max-mini-window-height, Oleh Krehel, 2017/04/08
- [elpa] master 8312176 210/348: ivy.el (ivy-magic-tilde): New defcustom, Oleh Krehel, 2017/04/08
- [elpa] master dcec964 211/348: ivy.el (ivy-magic-tilde): Fix type, Oleh Krehel, 2017/04/08
- [elpa] master 3d600b6 214/348: Correct ivy-fixed-height-minibuffer size, Oleh Krehel, 2017/04/08
- [elpa] master 2d4db96 215/348: Silence byte-compiler, Oleh Krehel, 2017/04/08
- [elpa] master 2f6b67a 221/348: counsel.el (counsel-pt): Add initial-input arg, Oleh Krehel, 2017/04/08