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

Allocate video buffers based on MAXROW/MAXCOL even if os window is smaller at initialization.

This commit is contained in:
2015-01-02 20:26:34 +08:00
parent 923d7bdc8e
commit 48ea9279a6
5 changed files with 16 additions and 10 deletions

View File

@@ -1550,9 +1550,9 @@ void sizesignal(int signr)
getscreensize(&w, &h);
if( h && w) {
term.t_mrow = h ;
term.t_mcol = w ;
if( h > 0 && w > 0) {
term.t_mrow = h = h < MAXROW ? h : MAXROW ;
term.t_mcol = w = w < MAXCOL ? w : MAXCOL ;
if( h - 1 != term.t_nrow || w != term.t_ncol)
newscreensize( h, w) ;
}