OSDN Git Service

値が偽の条件分岐式は無効状態として扱っているが、文字列検索時にはスキップしないように変更。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 22 Oct 2003 12:56:18 +0000 (12:56 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 22 Oct 2003 12:56:18 +0000 (12:56 +0000)
src/autopick.c

index 2000660..bcc76e0 100644 (file)
@@ -3518,7 +3518,8 @@ static void search_for_string(text_body_type *tb, cptr search_str, bool forward)
                if (!pos) continue;
 
                /* Found a line but it's inactive */
-               if (tb->states[i] & LSTAT_BYPASS)
+               if ((tb->states[i] & LSTAT_BYPASS) &&
+                   !(tb->states[i] & LSTAT_EXPRESSION))
                {
                        /* If it is first found, remember it */
                        if (bypassed_cy == -1)