]> git.eshelyaron.com Git - emacs.git/commitdiff
(match-string): Fix braino.
authorRichard M. Stallman <rms@gnu.org>
Sat, 28 Jan 1995 09:04:02 +0000 (09:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 28 Jan 1995 09:04:02 +0000 (09:04 +0000)
lisp/subr.el

index 5d5470f9e24eac4b87752dd0d8d78d77374b6493..3bcbee52f447d6c8e9ecc9e45d40454871e11df8 100644 (file)
@@ -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."