- Timestamp:
- Jun 29, 2002, 7:42:37 PM (23 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:
- 8ee73f8d
- Parents:
- 7360fab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
r1aee7d9 rd36f2cb 21 21 e->winlines=winlines; 22 22 e->wincols=wincols; 23 if (wincols > 80) { 24 e->fillcol=80-9; 25 } else { 26 e->fillcol=wincols-9; 27 } 28 e->wrapcol=wincols-9; 23 e->fillcol=owl_editwin_limit_maxcols(wincols-1, 24 owl_global_get_edit_maxfillcols(&g)); 25 e->wrapcol=owl_editwin_limit_maxcols(wincols-1, 26 owl_global_get_edit_maxwrapcols(&g)); 29 27 e->curswin=win; 30 28 e->style=style; … … 42 40 e->winlines=winlines; 43 41 e->wincols=wincols; 44 if (wincols > 80) { 45 e->fillcol=80-8; 46 } else { 47 e->fillcol=wincols-8; 48 } 49 e->wrapcol=wincols-9; 42 e->fillcol=owl_editwin_limit_maxcols(wincols-1, 43 owl_global_get_edit_maxfillcols(&g)); 44 e->wrapcol=owl_editwin_limit_maxcols(wincols-1, 45 owl_global_get_edit_maxwrapcols(&g)); 50 46 } 51 47 … … 56 52 void owl_editwin_set_dotsend(owl_editwin *e) { 57 53 e->dotsend=1; 54 } 55 56 int owl_editwin_limit_maxcols(int v, int maxv) { 57 if (maxv > 5 && v > maxv) { 58 return maxv; 59 } else { 60 return v; 61 } 58 62 } 59 63
Note: See TracChangeset
for help on using the changeset viewer.