Changeset 228326a
- Timestamp:
- Mar 29, 2009, 5:44:00 PM (16 years ago)
- Branches:
- owl
- Children:
- 64b6449
- Parents:
- 9b9e2d9c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rbc7ebf6 r228326a 401 401 } 402 402 403 refresh();404 405 403 /* get the new size */ 406 404 ioctl(STDIN_FILENO, TIOCGWINSZ, &size); 407 405 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 } 409 411 } else { 410 g->lines=x;412 g->lines=x; 411 413 } 412 414 413 415 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 } 415 421 } else { 416 422 g->cols=y; … … 420 426 resizeterm(size.ws_row, size.ws_col); 421 427 #endif 428 refresh(); 422 429 423 430 /* re-initialize the windows */ … … 435 442 owl_mainwin_redisplay(&(g->mw)); 436 443 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 441 447 /* TODO: this should handle other forms of popwins */ 442 448 if (owl_popwin_is_active(owl_global_get_popwin(g))
Note: See TracChangeset
for help on using the changeset viewer.