Changeset 73eda8c


Ignore:
Timestamp:
Mar 29, 2010, 11:11:32 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
58d47ca
Parents:
21dd391
git-author:
Nelson Elhage <nelhage@ksplice.com> (03/19/10 16:38:52)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/29/10 23:11:32)
Message:
Only use typewindelta when opening multiline editwins.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rf25812b r73eda8c  
    374374  int d;
    375375  d = owl_global_get_typewindelta(g);
    376   if (d > 0)
     376  if (d > 0 && style == OWL_EDITWIN_STYLE_MULTILINE)
    377377      owl_function_resize_typwin(owl_global_get_typwin_lines(g) + d);
    378378
     
    387387void owl_global_set_typwin_inactive(owl_global *g) {
    388388  int d = owl_global_get_typewindelta(g);
    389   if (d > 0)
     389  if (d > 0 && owl_editwin_get_style(g->tw) == OWL_EDITWIN_STYLE_MULTILINE)
    390390      owl_function_resize_typwin(owl_global_get_typwin_lines(g) - d);
    391391
Note: See TracChangeset for help on using the changeset viewer.