changeset 69238:de924a86ee65

(Fregexp_quote): Do not precede a literal `]' with two backslashes to try to make clear that it has a literal meaning; it does not do that. (It could close a character alternative containing a backslash.)
author Luc Teirlinck <teirllm@auburn.edu>
date Wed, 01 Mar 2006 23:52:22 +0000
parents 5e7d51a60bdf
children 9f445a141b51
files src/search.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Wed Mar 01 23:48:14 2006 +0000
+++ b/src/search.c	Wed Mar 01 23:52:22 2006 +0000
@@ -3066,7 +3066,7 @@
 
   for (; in != end; in++)
     {
-      if (*in == '[' || *in == ']'
+      if (*in == '['
 	  || *in == '*' || *in == '.' || *in == '\\'
 	  || *in == '?' || *in == '+'
 	  || *in == '^' || *in == '$')