- Timestamp:
- Jun 30, 2003, 6:12:40 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 453bd70
- Parents:
- c9334b1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
rc9334b1 rcf83b7a 9 9 #define INCR 5000 10 10 11 /* initialize the editwin e. 12 * 'win' is an already initialzed curses window that will be used by editwin 13 */ 11 14 void owl_editwin_init(owl_editwin *e, WINDOW *win, int winlines, int wincols, int style, owl_history *hist) 12 15 { 13 /* initialize the editwin e.14 * 'win' is an already initialzed curses window that will be used by editwin15 */16 16 e->buff=owl_malloc(INCR); 17 17 e->buff[0]='\0'; … … 24 24 e->winlines=winlines; 25 25 e->wincols=wincols; 26 e->fillcol=owl_editwin_limit_maxcols(wincols-1, 27 owl_global_get_edit_maxfillcols(&g)); 28 e->wrapcol=owl_editwin_limit_maxcols(wincols-1, 29 owl_global_get_edit_maxwrapcols(&g)); 26 e->fillcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxfillcols(&g)); 27 e->wrapcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxwrapcols(&g)); 30 28 e->curswin=win; 31 29 e->style=style; … … 45 43 e->winlines=winlines; 46 44 e->wincols=wincols; 47 e->fillcol=owl_editwin_limit_maxcols(wincols-1, 48 owl_global_get_edit_maxfillcols(&g)); 49 e->wrapcol=owl_editwin_limit_maxcols(wincols-1, 50 owl_global_get_edit_maxwrapcols(&g)); 45 e->fillcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxfillcols(&g)); 46 e->wrapcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxwrapcols(&g)); 51 47 } 52 48 … … 205 201 206 202 char *ptr1, *ptr2, *ptr3, *buff; 207 int i , j;203 int i; 208 204 209 205 werase(e->curswin); … … 855 851 } 856 852 857 /* returns if only whitespace remains */853 /* returns true if only whitespace remains */ 858 854 int owl_editwin_is_at_end(owl_editwin *e) 859 855 {
Note: See TracChangeset
for help on using the changeset viewer.