summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-01-28 09:04:02 +0000
committerRichard M. Stallman <rms@gnu.org>1995-01-28 09:04:02 +0000
commit5595739a1d4770f9924d9fc05d414ecacb385a44 (patch)
tree8f8419aef8cf5ffbc61404c8077a82f02bc549f8 /lisp/subr.el
parent2a02f3932c48d9b247242bde5a7b6c05e0568bb4 (diff)
downloademacs-5595739a1d4770f9924d9fc05d414ecacb385a44.tar.gz
(match-string): Fix braino.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 5d5470f9e24..3bcbee52f44 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -887,8 +887,8 @@ Wildcards and redirection are handled as usual in the shell."
If the last search or match was done against a string,
specify that string as the second argument STRING."
(if string
- (substring string (match-beginning 0) (match-end 0))
- (buffer-substring (match-beginning 0) (match-end 0))))
+ (substring string (match-beginning n) (match-end n))
+ (buffer-substring (match-beginning n) (match-end n))))
(defun shell-quote-argument (argument)
"Quote an argument for passing as argument to an inferior shell."