Rev 7895 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7895 | Rev 7945 | ||
---|---|---|---|
Line 122... | Line 122... | ||
122 | highlight(0xFF0000, _bg_color); |
122 | highlight(0xFF0000, _bg_color); |
123 | draw_found(); |
123 | draw_found(); |
124 | 124 | ||
Line 125... | Line 125... | ||
125 | for (i=_cur_pos+1; i |
125 | for (i=_cur_pos+1; i |
126 | if (strstri(lines.get(i),#search_text)!=-1) return atoi(pos.get(i)); |
126 | if (strstri(lines.get(i),#search_text)) return atoi(pos.get(i)); |
127 | } |
127 | } |
128 | return false; |
128 | return false; |
129 | } |
129 | } |
Line 130... | Line 130... | ||
130 | 130 | ||
131 | int SEARCH::highlight(dword _color, _bg_color) |
131 | int SEARCH::highlight(dword _color, _bg_color) |
132 | { |
132 | { |
133 | int i; |
133 | int i; |
134 | dword col; |
134 | dword col; |
135 | found_count = 0; |
135 | found_count = 0; |
136 | for (i=0; i |
136 | for (i=0; i |
137 | if (strstri(lines.get(i),#search_text)==-1) { |
137 | if (!strstri(lines.get(i),#search_text)) { |
138 | col=_bg_color; |
138 | col=_bg_color; |
139 | } else { |
139 | } else { |
140 | col=_color; |
140 | col=_color; |
141 | found_count++; |
141 | found_count++; |