From 7eb47123cbf8690ffc3d18580a0cf4695ad4a851 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 25 Sep 1996 22:35:17 +0000 Subject: [PATCH] (split-string): Fix minor bug. --- lisp/subr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index 30b5ca6703d..a3357c71863 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -789,7 +789,7 @@ If SEPARATORS is absent, it defaults to \"[ \\f\\t\\n\\r\\v]+\"." (start 0) (list nil)) (while (string-match rexp string start) - (or (eq start 0) + (or (eq (match-beginning 0) 0) (setq list (cons (substring string start (match-beginning 0)) list))) -- 2.39.2