[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8db9cc1 349/399: swiper.el (swiper--add-cursor-overlay): A
From: |
Oleh Krehel |
Subject: |
[elpa] master 8db9cc1 349/399: swiper.el (swiper--add-cursor-overlay): Avoid a very wide cursor on tab chars |
Date: |
Sat, 20 Jul 2019 14:57:55 -0400 (EDT) |
branch: master
commit 8db9cc190127160741fe5afe036d86a3e911c0b9
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
swiper.el (swiper--add-cursor-overlay): Avoid a very wide cursor on tab
chars
It's still not the full solution:
(insert "FOO\tasdfasdfasdfasfasdfffoo\tend")
Looking for the second "oo", the added space char will result the tab
to expand from 1 char to the full 8 chars.
But `whitespace-mode' does this as well, so I assume the solution is
not trivial.
---
swiper.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/swiper.el b/swiper.el
index 70b0f55..cf4f41a 100644
--- a/swiper.el
+++ b/swiper.el
@@ -816,8 +816,9 @@ Matched candidates should have `swiper-invocation-face'."
(setq swiper--isearch-highlight-timer nil)))
(defun swiper--add-cursor-overlay (wnd)
- (let ((ov (make-overlay (point) (if (eolp) (point) (1+ (point))))))
- (if (eolp)
+ (let* ((special (or (eolp) (looking-at "\t")))
+ (ov (make-overlay (point) (if special (point) (1+ (point))))))
+ (if special
(overlay-put ov 'after-string (propertize " " 'face 'ivy-cursor))
(overlay-put ov 'face 'ivy-cursor))
(overlay-put ov 'window wnd)
- [elpa] master 7defba2 327/399: ivy.el (ivy-avy): Fix when there's a scroll, (continued)
- [elpa] master 7defba2 327/399: ivy.el (ivy-avy): Fix when there's a scroll, Oleh Krehel, 2019/07/20
- [elpa] master 07c65b3 325/399: ivy.el (ivy--set-index-dynamic-collection): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 400d56f 319/399: counsel.el (counsel-open-buffer-file-externally): New function, Oleh Krehel, 2019/07/20
- [elpa] master 704b1de 328/399: ivy.el (ivy-avy): Allow to scroll with "C-v" and "M-v", Oleh Krehel, 2019/07/20
- [elpa] master 7183491 332/399: ivy.el (ivy--minibuffer-setup): Avoid extra call to ivy--exhibit, Oleh Krehel, 2019/07/20
- [elpa] master a249d15 329/399: ivy-test.el (ivy-avy): Only run if avy is installed, Oleh Krehel, 2019/07/20
- [elpa] master 15f8e10 330/399: .travis.yml: Add emacs-25.3 and emacs-26.2, Oleh Krehel, 2019/07/20
- [elpa] master d752db5 333/399: counsel.el (counsel-find-file-extern-extensions): New defcustom, Oleh Krehel, 2019/07/20
- [elpa] master cfb8d49 335/399: counsel.el (counsel-find-file-ignore-regexp): Add lockfiles to dotfiles, Oleh Krehel, 2019/07/20
- [elpa] master 011626a 343/399: ivy.el (ivy-occur-press): Improve when window config changed, Oleh Krehel, 2019/07/20
- [elpa] master 8db9cc1 349/399: swiper.el (swiper--add-cursor-overlay): Avoid a very wide cursor on tab chars,
Oleh Krehel <=
- [elpa] master 40d8114 338/399: counsel.el (counsel-shell-command-history): Remove obsolete command, Oleh Krehel, 2019/07/20
- [elpa] master f0a2341 337/399: counsel.el (counsel-rhythmbox): Add :require-match, Oleh Krehel, 2019/07/20
- [elpa] master 4de54f1 340/399: ivy.el (ivy-reverse-i-search-kill): Add and bind to "C-k", Oleh Krehel, 2019/07/20
- [elpa] master 7201c0f 334/399: ivy-hydra.el (ivy-dispatching-done-hydra-exit-keys): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 935603e 310/399: ivy.el (ivy--done): Press "RET" or "C-m" to create a directory, Oleh Krehel, 2019/07/20
- [elpa] master a20c196 336/399: counsel.el (counsel-set-variable): Better annotations for options, Oleh Krehel, 2019/07/20
- [elpa] master cea24b7 339/399: counsel.el (counsel-expression-history): Remove obsolete command, Oleh Krehel, 2019/07/20
- [elpa] master 9f6141f 345/399: counsel.el (counsel--browse-history): Allow to remove elements with "C-k", Oleh Krehel, 2019/07/20
- [elpa] master 673c45e 342/399: ivy.el (ivy--minibuffer-setup): Set line-spacing to nil in the minibuffer, Oleh Krehel, 2019/07/20
- [elpa] master 8d7578f 346/399: counsel.el (counsel--browse-history): Better prompt, Oleh Krehel, 2019/07/20