- Timestamp:
- Feb 4, 2011, 3:49:44 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 7e111f4
- Parents:
- dfe5829
- git-author:
- David Benjamin <davidben@mit.edu> (01/24/11 20:37:26)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/04/11 15:49:44)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r7ba2ad4 rd3c318b 301 301 if (do_search && owl_global_is_search_active(&g)) { 302 302 /* Search is active, so highlight search results. */ 303 char tmp2;304 303 int start, end; 305 304 while (owl_regex_compare(owl_global_get_search_re(&g), s, &start, &end) == 0) { … … 310 309 /* Found search string, highlight it. */ 311 310 312 tmp2 = s[start]; 313 s[start] = '\0'; 314 waddstr(w, s); 315 s[start] = tmp2; 311 waddnstr(w, s, start); 316 312 317 313 _owl_fmtext_wattrset(w, attr ^ OWL_FMTEXT_ATTR_REVERSE); 318 314 _owl_fmtext_wcolor_set(w, pair); 319 315 320 tmp2 = s[end]; 321 s[end] = '\0'; 322 waddstr(w, s + start); 323 s[end] = tmp2; 316 waddnstr(w, s + start, end - start); 324 317 325 318 _owl_fmtext_wattrset(w, attr);
Note: See TracChangeset
for help on using the changeset viewer.