1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-11-23 11:41:15 -05:00

Insure resizing screen commands are aligned with OS window sizes.

This commit is contained in:
2015-01-02 17:50:31 +08:00
parent c64d4ad381
commit 923d7bdc8e
4 changed files with 15 additions and 12 deletions

4
tcap.c
View File

@@ -161,8 +161,8 @@ static void tcapopen(void)
exit(1);
}
#ifdef SIGWINCH
term.t_mrow = MAXROW;
term.t_mcol = MAXCOL;
term.t_mrow = int_row > MAXROW ? MAXROW : int_row ;
term.t_mcol = int_col > MAXCOL ? MAXCOL : int_col ;
#else
term.t_mrow = term.t_nrow > MAXROW ? MAXROW : term.t_nrow;
term.t_mcol = term.t_ncol > MAXCOL ? MAXCOL : term.t_ncol;