Changeset 80ed757
- Timestamp:
- May 8, 2010, 10:19:56 AM (15 years ago)
- Branches:
- release-1.6
- Children:
- 161e879
- Parents:
- 937ac795
- git-author:
- Nelson Elhage <nelhage@mit.edu> (05/03/10 20:56:02)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/08/10 10:19:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
rb96cc28 r80ed757 125 125 e->topindex = 0; 126 126 e->excursions = NULL; 127 owl_editwin_set_curswin(e, win, winlines, wincols);128 127 e->style=style; 129 128 if ((style!=OWL_EDITWIN_STYLE_MULTILINE) && … … 131 130 e->style=OWL_EDITWIN_STYLE_MULTILINE; 132 131 } 132 owl_editwin_set_curswin(e, win, winlines, wincols); 133 133 e->lock=0; 134 134 e->dotsend=0; … … 152 152 e->wincols=wincols; 153 153 e->fillcol=owl_editwin_limit_maxcols(wincols-7, owl_global_get_edit_maxfillcols(&g)); 154 e->wrapcol=owl_editwin_limit_maxcols(wincols-7, owl_global_get_edit_maxwrapcols(&g)); 154 if (e->style == OWL_EDITWIN_STYLE_MULTILINE) 155 e->wrapcol=owl_editwin_limit_maxcols(wincols-7, owl_global_get_edit_maxwrapcols(&g)); 156 else 157 e->wrapcol = 0; 155 158 } 156 159 … … 1232 1235 } 1233 1236 1234 if (e->cursorx != -1 && e->cursorx + oe_char_width(c, e->cursorx) > e->wrapcol) { 1237 if (e->wrapcol > 0 && e->cursorx != -1 && 1238 e->cursorx + oe_char_width(c, e->cursorx) > e->wrapcol) { 1235 1239 /* XXX this is actually wrong: 1236 1240 * + If the line has been been wrapped, we can be past the wrap column but
Note: See TracChangeset
for help on using the changeset viewer.