static void
set_terminal_mode(term_T *term, int normal_mode)
{
-ch_log(NULL, "set_terminal_mode(): %d", normal_mode);
term->tl_normal_mode = normal_mode;
if (!normal_mode)
handle_postponed_scrollback(term);
// must not change it. Postpone adding the scrollback lines.
gap = &term->tl_scrollback_postponed;
update_buffer = FALSE;
-ch_log(NULL, "handle_pushline(): add to postponed");
}
else
{
cleanup_scrollback(term);
gap = &term->tl_scrollback;
update_buffer = TRUE;
-ch_log(NULL, "handle_pushline(): add to window");
}
limit_scrollback(term, gap, update_buffer);