branch: master commit 967d046286c56db506963a21496fbddeb316295d Author: Nathan Moreau <nathan.mor...@m4x.org> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy-test.el (counsel-yank-pop): Fix on Windows --- ivy-test.el | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ivy-test.el b/ivy-test.el index 0cbf66e..cc6450d 100644 --- a/ivy-test.el +++ b/ivy-test.el @@ -1008,14 +1008,15 @@ will bring the behavior in line with the newer Emacsen." (kill-buffer temp-buffer)))))) (ert-deftest counsel-yank-pop () - (let ((kill-ring '("foo"))) - (should (equal - (ivy-with-temp-buffer '(counsel-yank-pop) "C-m") - '(4 "foo"))) - (let ((counsel-yank-pop-after-point t)) - (should (equal - (ivy-with-temp-buffer '(counsel-yank-pop) "C-m") - '(1 "foo")))))) + (should (equal + (let ((kill-ring '("foo"))) + (ivy-with-temp-buffer '(counsel-yank-pop) "C-m")) + '(4 "foo"))) + (should (equal + (let ((kill-ring '("foo")) + (counsel-yank-pop-after-point t)) + (ivy-with-temp-buffer '(counsel-yank-pop) "C-m")) + '(1 "foo")))) (ert-deftest ivy-read-file-name-in-buffer-visiting-file () "Test `ivy-immediate-done' command in `read-file-name' without any editing in