]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy--reset-state): Don't deactivate region
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 4 Feb 2016 08:07:28 +0000 (09:07 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 4 Feb 2016 08:07:28 +0000 (09:07 +0100)
Fixes #377

ivy.el

diff --git a/ivy.el b/ivy.el
index af83c8fcf266795af5311ce907c97035698b0946..887d50ce3bf022b649289192f7e4c291f9c30b45 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -1368,10 +1368,9 @@ This is useful for recursive `ivy-read'."
     (setq ivy-exit nil)
     (setq ivy--default
           (if (region-active-p)
-              (prog1 (buffer-substring
-                      (region-beginning)
-                      (region-end))
-                (deactivate-mark))
+              (buffer-substring
+               (region-beginning)
+               (region-end))
             (or
              (thing-at-point 'url)
              (thing-at-point 'symbol)