Changeset 1fd0b25 for message.c


Ignore:
Timestamp:
Aug 17, 2002, 10:31:35 AM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
37c27cf
Parents:
8509c08
Message:
Added the 'search' command.
'/' is a keybinding for 'search'
'?' is a keybinding for 'search -r'
Fixed stristr, which was completely broken
renamed owl_fmtext_ztext_stylestrip to owl_function_ztext_styletsrip
     and put it in functions.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    re50cd56 r1fd0b25  
    460460    owl_fmtext_colorize(&b, color);
    461461  }
     462
     463  if (owl_global_is_search_active(&g)) {
     464    owl_fmtext_search_and_highlight(&b, owl_global_get_search_string(&g));
     465  }
     466     
    462467  owl_fmtext_curs_waddstr(&b, win);
    463468
     
    626631}
    627632                                       
     633int owl_message_search(owl_message *m, char *string) {
     634  /* return 1 if the message contains "string", 0 otherwise.  This is
     635   * case insensitive because the functions it uses are */
     636
     637  return (owl_fmtext_search(&(m->fmtext), string));
     638}
Note: See TracChangeset for help on using the changeset viewer.