=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/vim/Attic/regexp.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/vim/Attic/regexp.c 1996/09/07 21:40:25 1.1 +++ src/usr.bin/vim/Attic/regexp.c 1996/09/21 06:23:17 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: regexp.c,v 1.1 1996/09/07 21:40:25 downsj Exp $ */ +/* $OpenBSD: regexp.c,v 1.2 1996/09/21 06:23:17 downsj Exp $ */ /* vi:set ts=4 sw=4: * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE * @@ -36,9 +36,20 @@ * regular-expression syntax might require a total rethink. * * $Log: regexp.c,v $ - * Revision 1.1 1996/09/07 21:40:25 downsj - * Initial revision + * Revision 1.2 1996/09/21 06:23:17 downsj + * update to vim 4.4beta * + * Revision 1.1.1.1 1996/09/07 21:40:25 downsj + * Initial import of vim 4.2. + * + * This is meant to replace nvi in the tree. Vim, in general, works better, + * provides more features, and does not suffer from the license problems + * being imposed upon nvi. + * + * On the other hand, vim lacks a non-visual ex mode, in addition to open mode. + * + * This includes the GUI (X11) code, but doesn't try to compile it. + * * Revision 1.2 88/04/28 08:09:45 tony * First modification of the regexp library. Added an external variable * 'reg_ic' which can be set to indicate that case should be ignored. @@ -300,7 +311,8 @@ { if (p[0] == dirc && !in_range) /* found end of regexp */ break; - if ((p[0] == '[' && p_magic) || (p[0] == '\\' && p[1] == '[' && !p_magic)) + if (!in_range && ((p[0] == '[' && p_magic) || + (p[0] == '\\' && p[1] == '[' && !p_magic))) { in_range = TRUE; if (p[0] == '\\')