Changes in viewwin.c [4083c49:dd6af02]
Legend:
- Unmodified
- Added
- Removed
-
viewwin.c
r4083c49 rdd6af02 35 35 void owl_viewwin_init_fmtext(owl_viewwin *v, WINDOW *win, int winlines, int wincols, const owl_fmtext *fmtext) 36 36 { 37 char *text; 38 37 39 owl_fmtext_copy(&(v->fmtext), fmtext); 40 text = owl_fmtext_print_plain(fmtext); 41 if (text[0] != '\0' && text[strlen(text) - 1] != '\n') { 42 owl_fmtext_append_normal(&(v->fmtext), "\n"); 43 } 38 44 v->textlines=owl_fmtext_num_lines(&(v->fmtext)); 39 45 v->topline=0;
Note: See TracChangeset
for help on using the changeset viewer.