[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 51e765e 316/399: ivy.el (ivy-partial): Return nil when com
From: |
Oleh Krehel |
Subject: |
[elpa] master 51e765e 316/399: ivy.el (ivy-partial): Return nil when comletion was not updated |
Date: |
Sat, 20 Jul 2019 14:57:47 -0400 (EDT) |
branch: master
commit 51e765e17a3b91aa3605307a4e247d7efb06f61e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-partial): Return nil when comletion was not updated
* ivy-test.el (counsel-find-file-with-spaces): Add tests.
Fixes #2103
---
ivy-test.el | 21 ++++++++++++++++++++-
ivy.el | 1 +
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/ivy-test.el b/ivy-test.el
index 1c11c1d..f40f63d 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -1162,7 +1162,7 @@ a buffer visiting a file."
(shell-command
"git clone -b test --single-branch https://github.com/abo-abo/swiper/
tests"))
(let ((default-directory (expand-file-name "tests/"))
- (version "b1a2bbf"))
+ (version "935fde0"))
(shell-command
(format "git checkout %s || git fetch && git checkout %s" version
version))))
@@ -1192,6 +1192,25 @@ a buffer visiting a file."
:dir "tests/find-file/dotfiles/"))
"tests/find-file/dotfiles/.foobar1")))
+(ert-deftest counsel-find-file-with-spaces ()
+ (counsel--setup-test-files)
+ (let ((ivy-extra-directories nil))
+ (should (string=
+ (file-relative-name
+ (ivy-with '(counsel-find-file) "TAB TAB TAB TAB"
+ :dir "tests/find-file/directories-with-spaces/"))
+ "tests/find-file/directories-with-spaces/bar baz i/file1"))
+ (should (string=
+ (file-relative-name
+ (ivy-with '(counsel-find-file) "C-n TAB TAB TAB TAB"
+ :dir "tests/find-file/directories-with-spaces/"))
+ "tests/find-file/directories-with-spaces/bar baz ii/file2"))
+ (should (string=
+ (file-relative-name
+ (ivy-with '(counsel-find-file) "TAB C-n TAB TAB TAB TAB"
+ :dir "tests/find-file/directories-with-spaces/"))
+ "tests/find-file/directories-with-spaces/bar baz ii/file2"))))
+
(provide 'ivy-test)
;;; ivy-test.el ends here
diff --git a/ivy.el b/ivy.el
index ad31147..8b9aecf 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1041,6 +1041,7 @@ If the text hasn't changed as a result, forward to
`ivy-alt-done'."
ivy--old-cands)))))
(cond ((eq new t) nil)
((string= new ivy-text) nil)
+ ((string= (car tail) new) nil)
(new
(delete-region (minibuffer-prompt-end) (point-max))
(setcar tail
- [elpa] master 4078eb9 308/399: counsel.el (counsel-yank-pop-height): Remove, (continued)
- [elpa] master 4078eb9 308/399: counsel.el (counsel-yank-pop-height): Remove, Oleh Krehel, 2019/07/20
- [elpa] master 895906e 309/399: counsel.el (counsel-descbinds-function): Add, Oleh Krehel, 2019/07/20
- [elpa] master 4a37e1e 314/399: swiper.el (swiper-query-replace): Make eval-style replacement more accessible, Oleh Krehel, 2019/07/20
- [elpa] master dd2d495 312/399: swiper.el (swiper-all-thing-at-point): Add, Oleh Krehel, 2019/07/20
- [elpa] master 0576b61 315/399: .github/FUNDING.yml: Add, Oleh Krehel, 2019/07/20
- [elpa] master d060eea 313/399: swiper.el (swiper-query-replace): Add query-replace-compile-replacement, Oleh Krehel, 2019/07/20
- [elpa] master 09b9508 321/399: ivy.el (ivy--find-file-action): Fix for virtual buffers, Oleh Krehel, 2019/07/20
- [elpa] master 7d46450 311/399: Add more information about the collection argument in `ivy-read`., Oleh Krehel, 2019/07/20
- [elpa] master 676a8ee 318/399: swiper.el (swiper-isearch-current-match): Remove unused face, Oleh Krehel, 2019/07/20
- [elpa] master ba626e7 317/399: ivy.el (ivy-next-history-element): Use minibuffer-default for dired-dwim-target, Oleh Krehel, 2019/07/20
- [elpa] master 51e765e 316/399: ivy.el (ivy-partial): Return nil when comletion was not updated,
Oleh Krehel <=
- [elpa] master 16d2268 320/399: Fix ivy-push/switch-view windows layout, Oleh Krehel, 2019/07/20
- [elpa] master d260c48 322/399: swiper.el: Obey search-invisible, Oleh Krehel, 2019/07/20
- [elpa] master de8842e 323/399: Add ivy-switch-buffer-map to counsel-switch-buffer, Oleh Krehel, 2019/07/20
- [elpa] master 0d87297 326/399: counsel.el (counsel-open-buffer-file-externally): Cleanup, Oleh Krehel, 2019/07/20
- [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