Commit 903c6b39e03e40b9a13c8e59cfdbb86e22dc7102
Resize terminal to its original size after :help
This solution is a workaround for strange behaviour of pdcurses library
for this case: the window is resized correctly at first, but changes its
size back on wrefresh(...) call.
Thanks to filterfalse.
Author: xaizek
Author date (UTC): 2013-05-10 08:21
Committer name: xaizek
Committer date (UTC): 2013-05-10 08:29
Parent(s): c7a34ef63e2c39cd8a2b6f965f3bf05668e77162
Signing key:
Tree: ec9585aa1e3b032d92213400e7ca2851e5f9da3f
File ChangeLog changed (mode: 100644) (index 4b2cdbf7f..ee0f1c897) |
22 |
22 |
|
|
23 |
23 |
Pause on Windows, when executing of shell command fails. |
Pause on Windows, when executing of shell command fails. |
24 |
24 |
|
|
|
25 |
|
Resize terminal window back to its original size after :help on Windows. |
|
26 |
|
Thanks to filterfalse. |
|
27 |
|
|
25 |
28 |
Fixed generation of vifm-help.txt file on Windows (all occurrences of the |
Fixed generation of vifm-help.txt file on Windows (all occurrences of the |
26 |
29 |
"[m" sequence were removed). Thanks to Sebastian Cyprych. |
"[m" sequence were removed). Thanks to Sebastian Cyprych. |
27 |
30 |
|
|
File src/commands.c changed (mode: 100644) (index c66526c7e..8b88d5a05) |
... |
... |
help_cmd(const cmd_info_t *cmd_info) |
2306 |
2306 |
system("pause"); |
system("pause"); |
2307 |
2307 |
} |
} |
2308 |
2308 |
update_screen(UT_FULL); |
update_screen(UT_FULL); |
|
2309 |
|
update_screen(UT_REDRAW); |
2309 |
2310 |
#endif |
#endif |
2310 |
2311 |
} |
} |
2311 |
2312 |
return 0; |
return 0; |
File src/ui.c changed (mode: 100644) (index 8bc6f7654..2f1ea715b) |
... |
... |
resize_all(void) |
1089 |
1089 |
resize_term(ws.ws_row, ws.ws_col); |
resize_term(ws.ws_row, ws.ws_col); |
1090 |
1090 |
#endif |
#endif |
1091 |
1091 |
|
|
|
1092 |
|
#ifdef _WIN32 |
|
1093 |
|
getmaxyx(stdscr, screen_y, screen_x); |
|
1094 |
|
resize_term(screen_y, screen_x); |
|
1095 |
|
#endif |
|
1096 |
|
|
1092 |
1097 |
getmaxyx(stdscr, screen_y, screen_x); |
getmaxyx(stdscr, screen_y, screen_x); |
1093 |
1098 |
cfg.lines = screen_y; |
cfg.lines = screen_y; |
1094 |
1099 |
cfg.columns = screen_x; |
cfg.columns = screen_x; |