]> code.delx.au - gnu-emacs-elpa/commitdiff
swiper.el (swiper--re-builder): Fix "^a" -> "^" case
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 14 Oct 2015 17:14:05 +0000 (19:14 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 14 Oct 2015 17:14:05 +0000 (19:14 +0200)
Fixes #262

swiper.el

index f702e908d433db7d7009b5cccad158c816985a4f..4cd0bfca9e3fa7f0e6248d39c782f644d6ca0f9a 100644 (file)
--- a/swiper.el
+++ b/swiper.el
@@ -316,6 +316,7 @@ there have line numbers. In the buffer, `ivy--regex' should be used."
     ((equal str "")
      "")
     ((equal str "^")
+     (setq ivy--subexps 0)
      ".")
     ((string-match "^\\^" str)
      (setq ivy--old-re "")