emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 2680df7 34/40: Fixed bug when loccur called with empty arg


From: Alexey Veretennikov
Subject: [elpa] master 2680df7 34/40: Fixed bug when loccur called with empty argument.
Date: Fri, 29 Jan 2016 23:29:50 +0000

branch: master
commit 2680df7e01ce119d0d36185c769048ff6b0b9ee5
Author: Alexey Veretennikov <address@hidden>
Commit: Alexey Veretennikov <address@hidden>

    Fixed bug when loccur called with empty argument.
---
 loccur.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/loccur.el b/loccur.el
index eaed577..a59d406 100644
--- a/loccur.el
+++ b/loccur.el
@@ -162,9 +162,10 @@ containing the regular expression REGEX.  A second call of 
the function
 unhides lines again"
   (interactive
    (if loccur-mode
-       nil
+       (list nil)
      (list (read-string "Loccur: " (loccur-prompt) 'loccur-history))))
-  (if (or (not regex) loccur-mode)
+  (if (or loccur-mode
+          (= (length regex) 0))
       (progn
         ;; remove current search and turn off loccur mode
         ;; to allow to call `loccur' multiple times



reply via email to

[Prev in Thread] Current Thread [Next in Thread]