branch: master
commit c27cde28fb65f85800ae1d8a59158a8d0d548719
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    ivy.el (ivy--reset-state): Don't deactivate region
    
    Fixes #377
---
 ivy.el |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/ivy.el b/ivy.el
index af83c8f..887d50c 100644
--- 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)

Reply via email to