Changeset 9d7a720


Ignore:
Timestamp:
May 3, 2010, 9:09:18 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
a41c8d1, 1b5b975
Parents:
4d9e4254
git-author:
Nelson Elhage <nelhage@mit.edu> (05/03/10 20:56:02)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/03/10 21:09:18)
Message:
Always disable wrapping in single-line editwins.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    rd625cfd r9d7a720  
    125125  e->topindex = 0;
    126126  e->excursions = NULL;
    127   owl_editwin_set_curswin(e, win, winlines, wincols);
    128127  e->style=style;
    129128  if ((style!=OWL_EDITWIN_STYLE_MULTILINE) &&
     
    131130    e->style=OWL_EDITWIN_STYLE_MULTILINE;
    132131  }
     132  owl_editwin_set_curswin(e, win, winlines, wincols);
    133133  e->lock=0;
    134134  e->dotsend=0;
     
    152152  e->wincols=wincols;
    153153  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;
    155158}
    156159
Note: See TracChangeset for help on using the changeset viewer.