summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-03-04 04:42:04 +0000
committerRichard M. Stallman <rms@gnu.org>1994-03-04 04:42:04 +0000
commitd6956fc01963c20bc40ff709c08b3a4c1f7f7bfb (patch)
tree4873e776524e27b1cc7b4b696ac5704a96f7608c /src/search.c
parentc8bb68e8fba53d209e72db591d570b5d8d0d93c1 (diff)
downloademacs-d6956fc01963c20bc40ff709c08b3a4c1f7f7bfb.tar.gz
(skip_chars): Treat `-' as alias for space, if syntaxp.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c3
1 files changed, 3 insertions, 0 deletions
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)