branch: master commit 2680df7e01ce119d0d36185c769048ff6b0b9ee5 Author: Alexey Veretennikov <alexey.veretenni...@gmail.com> Commit: Alexey Veretennikov <alexey.veretenni...@gmail.com>
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