Changeset 228326a


Ignore:
Timestamp:
Mar 29, 2009, 5:44:00 PM (16 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
owl
Children:
64b6449
Parents:
9b9e2d9c
Message:
resize fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rbc7ebf6 r228326a  
    401401  }
    402402
    403   refresh();
    404 
    405403  /* get the new size */
    406404  ioctl(STDIN_FILENO, TIOCGWINSZ, &size);
    407405  if (x==0) {
    408     g->lines=size.ws_row;
     406    if (size.ws_row) {
     407      g->lines=size.ws_row;
     408    } else {
     409      g->lines=LINES;
     410    }
    409411  } else {
    410     g->lines=x;
     412      g->lines=x;
    411413  }
    412414
    413415  if (y==0) {
    414     g->cols=size.ws_col;
     416    if (size.ws_col) {
     417      g->cols=size.ws_col;
     418    } else {
     419      g->cols=COLS;
     420    }
    415421  } else {
    416422    g->cols=y;
     
    420426  resizeterm(size.ws_row, size.ws_col);
    421427#endif
     428  refresh();
    422429
    423430  /* re-initialize the windows */
     
    435442  owl_mainwin_redisplay(&(g->mw));
    436443  sepbar(NULL);
    437 
    438   if (owl_global_is_typwin_active(g)) {
    439     owl_editwin_redisplay(&(g->tw), 0);
    440   }     
     444  owl_editwin_redisplay(&(g->tw), 0);
     445  owl_function_full_redisplay(&g);
     446
    441447  /* TODO: this should handle other forms of popwins */
    442448  if (owl_popwin_is_active(owl_global_get_popwin(g))
Note: See TracChangeset for help on using the changeset viewer.