aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorColin Walters <[email protected]>2002-05-15 19:35:54 +0000
committerColin Walters <[email protected]>2002-05-15 19:35:54 +0000
commitbda1925e34e629161f36477903d5f2602ef8668e (patch)
tree005bf11f1d52b598899f00d731d27bdd82e09d93 /lisp
parent30762c43d2d0ab1c567eaa77279a9b3a85dfaacf (diff)
(occur-read-primary-args): Handle a bare 'C-u' correctly.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/replace.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index d146ef1548..e5a320d7fd 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -612,7 +612,8 @@ If the value is nil, don't highlight the buffer names specially."
(if (equal input "")
default
input))
- current-prefix-arg))
+ (when current-prefix-arg
+ (prefix-numeric-value current-prefix-arg))))
(defun occur (regexp &optional nlines)
"Show all lines in the current buffer containing a match for REGEXP.