return do_resize;
while (do_resize)
{
+#ifdef FEAT_EVAL
ch_log(NULL, "calling handle_resize() in resize_func()");
+#endif
handle_resize();
}
return FALSE;
{
columns = ws.ws_col;
rows = ws.ws_row;
+# ifdef FEAT_EVAL
ch_log(NULL, "Got size with TIOCGWINSZ: %ld x %ld", columns, rows);
+# endif
}
}
# else // TIOCGWINSZ
{
columns = ts.ts_cols;
rows = ts.ts_lines;
+# ifdef FEAT_EVAL
ch_log(NULL, "Got size with TIOCGSIZE: %ld x %ld", columns, rows);
+# endif
}
}
# endif // TIOCGSIZE
if ((p = (char_u *)getenv("LINES")))
{
rows = atoi((char *)p);
+# ifdef FEAT_EVAL
ch_log(NULL, "Got 'lines' from $LINES: %ld", rows);
+# endif
}
if ((p = (char_u *)getenv("COLUMNS")))
{
columns = atoi((char *)p);
+# ifdef FEAT_EVAL
ch_log(NULL, "Got 'columns' from $COLUMNS: %ld", columns);
+# endif
}
}
if (columns == 0 || rows == 0)
{
getlinecol(&columns, &rows);
+# ifdef FEAT_EVAL
ch_log(NULL, "Got size from termcap: %ld x %ld", columns, rows);
+# endif
}
#endif
// SIGWINCH.
if (do_resize)
{
+# ifdef FEAT_EVAL
ch_log(NULL, "calling handle_resize() in RealWaitForChar()");
+# endif
handle_resize();
}