CTRL-C In Visual mode: Stop Visual mode. When insert mode is
pending (the mode message shows
"-- (insert) VISUAL --"), it is also stopped.
- On MS-Windows, you may need to press CTRL-Break
+ On MS-Windows, you may need to press CTRL-Break
|dos-CTRL-Break|.
==============================================================================
if(screen->sb_buffer)
vterm_allocator_free(screen->vt, screen->sb_buffer);
+ if (new_cols > 1000)
+ new_cols = 1000;
+
screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols);
}
+ if (new_rows > 1000)
+ new_rows = 1000;
+
resize_buffer(screen, 0, new_rows, new_cols, !altscreen_active, fields);
if(screen->buffers[BUFIDX_ALTSCREEN])
resize_buffer(screen, 1, new_rows, new_cols, altscreen_active, fields);
}
*rows = atoi((char *)wp->w_p_tws);
*cols = atoi((char *)p + 1);
+ if (*rows > 1000)
+ *rows = 1000;
+ if (*cols > 1000)
+ *cols = 1000;
return minsize;
}
call StopShellInTerminal(buf)
exe buf . 'bwipe'
+ " This used to crash Vim
+ set termwinsize=10000*10000
+ let buf = Run_shell_in_terminal({})
+ let win = bufwinid(buf)
+ call assert_equal([1000, 1000], term_getsize(buf))
+ call StopShellInTerminal(buf)
+ exe buf . 'bwipe'
+
set termwinsize=
endfunc
set statusline&
endfunc
+func Test_terminal_resize2()
+ CheckNotMSWindows
+ set statusline=x
+ terminal
+ call assert_equal(2, winnr('$'))
+ let buf = bufnr()
+
+ " Wait for the shell to display a prompt
+ call WaitForAssert({-> assert_notequal('', term_getline(buf, 1))})
+
+ " This used to crash Vim
+ call feedkeys("printf '\033[8;99999;99999t'\<CR>", 'xt')
+ redraw
+
+ call feedkeys("exit\<CR>", 'xt')
+ call TermWait(buf)
+ set statusline&
+endfunc
+
" must be nearly the last, we can't go back from GUI to terminal
func Test_zz1_terminal_in_gui()
CheckCanRunGui
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1916,
/**/
1915,
/**/