Changeset 5b68c05
- Timestamp:
- Sep 18, 2010, 3:17:27 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- f7456bc
- Parents:
- 449c682
- git-author:
- David Benjamin <davidben@mit.edu> (07/31/10 18:22:23)
- git-committer:
- David Benjamin <davidben@mit.edu> (09/18/10 15:17:27)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rba042db r5b68c05 643 643 if (re != NULL) 644 644 owl_regex_copy(re, &g->search_re); 645 /* TODO: Emit a signal so we don't depend on the viewwin here. */ 646 if (owl_global_get_viewwin(g)) 647 owl_viewwin_dirty(owl_global_get_viewwin(g)); 645 648 } 646 649 -
viewwin.c
r449c682 r5b68c05 28 28 void owl_viewwin_append_text(owl_viewwin *v, const char *text) { 29 29 owl_fmtext_append_normal(&(v->fmtext), text); 30 v->textlines=owl_fmtext_num_lines(&(v->fmtext)); 30 v->textlines=owl_fmtext_num_lines(&(v->fmtext)); 31 owl_viewwin_dirty(v); 32 } 33 34 /* Schedule a redraw of 'v'. Exported for hooking into the search 35 string; when we have some way of listening for changes, this can be 36 removed. */ 37 void owl_viewwin_dirty(owl_viewwin *v) 38 { 39 if (v->window) 31 40 owl_window_dirty(v->window); 32 41 } … … 112 121 v->topline = v->textlines - winlines + BOTTOM_OFFSET; 113 122 } 114 owl_ window_dirty(v->window);123 owl_viewwin_dirty(v); 115 124 } 116 125 … … 123 132 v->topline = v->textlines - winlines + BOTTOM_OFFSET; 124 133 } 125 owl_ window_dirty(v->window);134 owl_viewwin_dirty(v); 126 135 } 127 136 … … 132 141 v->topline-=winlines; 133 142 if (v->topline<0) v->topline=0; 134 owl_window_dirty(v->window); 143 owl_viewwin_dirty(v); 144 135 145 } 136 146 … … 139 149 v->topline--; 140 150 if (v->topline<0) v->topline=0; 141 owl_ window_dirty(v->window);151 owl_viewwin_dirty(v); 142 152 } 143 153 … … 145 155 { 146 156 v->rightshift+=n; 147 owl_ window_dirty(v->window);157 owl_viewwin_dirty(v); 148 158 } 149 159 … … 152 162 v->rightshift-=n; 153 163 if (v->rightshift<0) v->rightshift=0; 154 owl_ window_dirty(v->window);164 owl_viewwin_dirty(v); 155 165 } 156 166 … … 159 169 v->topline=0; 160 170 v->rightshift=0; 161 owl_ window_dirty(v->window);171 owl_viewwin_dirty(v); 162 172 } 163 173 … … 167 177 owl_window_get_position(v->window, &winlines, 0, 0, 0); 168 178 v->topline = v->textlines - winlines + BOTTOM_OFFSET; 169 owl_ window_dirty(v->window);179 owl_viewwin_dirty(v); 170 180 } 171 181
Note: See TracChangeset
for help on using the changeset viewer.