Changeset d625cfd
- Timestamp:
- May 3, 2010, 9:09:14 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- a4bbd80
- Parents:
- 7149832
- git-author:
- Nelson Elhage <nelhage@mit.edu> (05/01/10 11:51:50)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/03/10 21:09:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
r7149832 rd625cfd 49 49 static int oe_find_display_line(owl_editwin *e, int *x, int index, int *hard); 50 50 static void oe_insert_char(owl_editwin *e, gunichar c); 51 static int owl_editwin_limit_maxcols(int v, int maxv);51 static int owl_editwin_limit_maxcols(int width, int cols); 52 52 static int owl_editwin_check_dotsend(owl_editwin *e); 53 53 static int owl_editwin_is_char_in(owl_editwin *e, const char *set); … … 218 218 } 219 219 220 static int owl_editwin_limit_maxcols(int v, int maxv) 221 { 222 /* maxv > 5 ? MAX(v, vax) : v */ 223 if (maxv > 5 && v > maxv) { 224 return(maxv); 225 } else { 226 return(v); 227 } 220 static int owl_editwin_limit_maxcols(int width, int cols) 221 { 222 if (cols == 0) 223 return width; 224 return cols; 228 225 } 229 226 … … 1101 1098 int sentence; 1102 1099 1100 if (e->fillcol < 0) 1101 /* auto-fill disabled */ 1102 return; 1103 1103 1104 oe_save_excursion(e, &x); 1104 1105 … … 1237 1238 } 1238 1239 1239 if (e->cursorx != -1 && e->cursorx + oe_char_width(c, e->cursorx) > e->wrapcol) { 1240 if (e->wrapcol > 0 && e->cursorx != -1 && 1241 e->cursorx + oe_char_width(c, e->cursorx) > e->wrapcol) { 1240 1242 /* XXX this is actually wrong: 1241 1243 * + 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.