- Timestamp:
- Jan 2, 2008, 2:42:05 AM (16 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- c60ade2
- Parents:
- 2febcae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r5376a95 r47519e1b 248 248 * must already be initiatlized with curses 249 249 */ 250 void owl_fmtext_curs_waddstr(owl_fmtext *f, WINDOW *w, int do_search)250 void _owl_fmtext_curs_waddstr(owl_fmtext *f, WINDOW *w, int do_search) /*noproto*/ 251 251 { 252 252 /* char *tmpbuff; */ … … 264 264 search_results = (do_search 265 265 ? owl_fmtext_search(f, owl_global_get_search_string(&g)) 266 : NULL); 267 if (search_results) search_len = strlen(owl_global_get_search_string(&g)); 266 : 0); 267 search_len = (search_results 268 ? strlen(owl_global_get_search_string(&g)) 269 : 0); 268 270 s = f->textbuff; 269 271 /* Set default attributes. */ … … 350 352 } 351 353 354 void owl_fmtext_curs_waddstr(owl_fmtext *f, WINDOW *w) 355 { 356 _owl_fmtext_curs_waddstr(f, w, owl_global_is_search_active(&g)); 357 } 358 359 void owl_fmtext_curs_waddstr_without_search(owl_fmtext *f, WINDOW *w) 360 { 361 _owl_fmtext_curs_waddstr(f, w, 0); 362 } 352 363 353 364 /* start with line 'aline' (where the first line is 0) and print … … 413 424 st = 0; 414 425 padding = 0; 426 chwidth = 0; 415 427 ptr_c = ptr_s; 416 428 while(col <= bcol && ptr_c < ptr_e) { 417 429 gunichar c = g_utf8_get_char(ptr_c); 418 430 if (!_owl_fmtext_is_format_char(c)) { 419 chwidth = wcwidth(c);431 chwidth = mk_wcwidth(c); 420 432 421 433 if (col + chwidth > bcol)
Note: See TracChangeset
for help on using the changeset viewer.