mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.0.0892: when opening a terminal the pty size doesn't always match
Problem: When opening a terminal the pty size doesn't always match. Solution: Update the pty size after opening the terminal. (Ken Takata)
This commit is contained in:
@@ -43,9 +43,11 @@
|
|||||||
* - add option values to the command:
|
* - add option values to the command:
|
||||||
* :term <24x80> <close> vim notes.txt
|
* :term <24x80> <close> vim notes.txt
|
||||||
* - support different cursor shapes, colors and attributes
|
* - support different cursor shapes, colors and attributes
|
||||||
* - MS-Windows: no redraw for 'updatetime' #1915
|
|
||||||
* - make term_getcursor() return type (none/block/bar/underline) and
|
* - make term_getcursor() return type (none/block/bar/underline) and
|
||||||
* attributes (color, blink, etc.)
|
* attributes (color, blink, etc.)
|
||||||
|
* - MS-Windows: no redraw for 'updatetime' #1915
|
||||||
|
* - term_getline() and term_scrape() don't work once the job exited. Use the
|
||||||
|
* buffer and scrollback, remembering the topline from when the job exited.
|
||||||
* - To set BS correctly, check get_stty(); Pass the fd of the pty.
|
* - To set BS correctly, check get_stty(); Pass the fd of the pty.
|
||||||
* For the GUI fill termios with default values, perhaps like pangoterm:
|
* For the GUI fill termios with default values, perhaps like pangoterm:
|
||||||
* http://bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/head:/main.c#L134
|
* http://bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/head:/main.c#L134
|
||||||
@@ -337,8 +339,9 @@ term_start(char_u *cmd, jobopt_T *opt)
|
|||||||
/* System dependent: setup the vterm and start the job in it. */
|
/* System dependent: setup the vterm and start the job in it. */
|
||||||
if (term_and_job_init(term, term->tl_rows, term->tl_cols, cmd, opt) == OK)
|
if (term_and_job_init(term, term->tl_rows, term->tl_cols, cmd, opt) == OK)
|
||||||
{
|
{
|
||||||
/* store the size we ended up with */
|
/* Get and remember the size we ended up with. Update the pty. */
|
||||||
vterm_get_size(term->tl_vterm, &term->tl_rows, &term->tl_cols);
|
vterm_get_size(term->tl_vterm, &term->tl_rows, &term->tl_cols);
|
||||||
|
term_report_winsize(term, term->tl_rows, term->tl_cols);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
892,
|
||||||
/**/
|
/**/
|
||||||
891,
|
891,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user