From: David Lawrence Ramsey Date: Mon, 14 Mar 2005 19:17:27 +0000 (+0000) Subject: add missing blank lines X-Git-Tag: v1.3.6~35 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7b918c76ee7c422903482d1488a6036dd2631f26;p=nano.git add missing blank lines git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2368 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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);