From 7b918c76ee7c422903482d1488a6036dd2631f26 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 14 Mar 2005 19:17:27 +0000 Subject: [PATCH] add missing blank lines git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2368 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 5cac8b1b..d904aaf3 100644 --- a/src/search.c +++ b/src/search.c @@ -1069,6 +1069,7 @@ void do_find_bracket(void) } assert(strlen(brackets) % 2 == 0); + wanted_ch = brackets[(strlen(brackets) - 1) - (pos - brackets)]; current_save = current; @@ -1079,7 +1080,6 @@ void do_find_bracket(void) /* Apparent near redundancy with regexp_pat[] here is needed. * "[][]" works, "[[]]" doesn't. */ - if (pos < brackets + (strlen(brackets) / 2)) { /* On a left bracket. */ regexp_pat[1] = wanted_ch; @@ -1093,6 +1093,7 @@ void do_find_bracket(void) } regexp_init(regexp_pat); + /* We constructed regexp_pat to be a valid expression. */ assert(regexp_compiled);