summaryrefslogtreecommitdiff
path: root/usr.bin/vim/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vim/regexp.c')
-rw-r--r--usr.bin/vim/regexp.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/usr.bin/vim/regexp.c b/usr.bin/vim/regexp.c
index 145842e2899..3123ca8b1c6 100644
--- a/usr.bin/vim/regexp.c
+++ b/usr.bin/vim/regexp.c
@@ -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,8 +36,19 @@
* 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
@@ -300,7 +311,8 @@ skip_regexp(p, dirc)
{
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] == '\\')