From 9239c6c1ee1034cbc8e9c7e02837a6b158334733 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 4 Mar 1994 04:42:04 +0000 Subject: [PATCH] (skip_chars): Treat `-' as alias for space, if syntaxp. --- src/search.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/search.c b/src/search.c index 4d39d38c68a..1e4b72bd9c0 100644 --- a/src/search.c +++ b/src/search.c @@ -472,6 +472,9 @@ skip_chars (forwardp, syntaxp, string, lim) } } + if (syntaxp && fastmap['-'] != 0) + fastmap[' '] = 1; + /* If ^ was the first character, complement the fastmap. */ if (negate) -- 2.39.5