Patch 8.2.3803

4 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 14, 2021, 3:42:15 AM12/14/21
to vim...@googlegroups.com

Patch 8.2.3803
Problem: Crash when 'writedelay' is set and using a terminal window to
execute a shell command.
Solution: Check that "tl_vterm" isn't NULL. (closes #9346)
Files: src/terminal.c


*** ../vim-8.2.3802/src/terminal.c 2021-12-13 21:59:04.895993159 +0000
--- src/terminal.c 2021-12-14 08:37:58.468250188 +0000
***************
*** 2101,2115 ****
/*
* Get a key from the user with terminal mode mappings.
* Note: while waiting a terminal may be closed and freed if the channel is
! * closed and ++close was used.
*/
static int
term_vgetc()
{
int c;
int save_State = State;
! int modify_other_keys =
! vterm_is_modify_other_keys(curbuf->b_term->tl_vterm);

State = TERMINAL;
got_int = FALSE;
--- 2101,2115 ----
/*
* Get a key from the user with terminal mode mappings.
* Note: while waiting a terminal may be closed and freed if the channel is
! * closed and ++close was used. This may even happen before we get here.
*/
static int
term_vgetc()
{
int c;
int save_State = State;
! int modify_other_keys = curbuf->b_term->tl_vterm == NULL ? FALSE
! : vterm_is_modify_other_keys(curbuf->b_term->tl_vterm);

State = TERMINAL;
got_int = FALSE;
*** ../vim-8.2.3802/src/version.c 2021-12-13 22:17:40.118951320 +0000
--- src/version.c 2021-12-14 08:40:18.507864467 +0000
***************
*** 751,752 ****
--- 751,754 ----
{ /* Add new patch number below this line */
+ /**/
+ 3803,
/**/

--
"You know, it's at times like this when I'm trapped in a Vogon airlock with
a man from Betelgeuse and about to die of asphyxiation in deep space that I
really wish I'd listened to what my mother told me when I was young!"
"Why, what did she tell you?"
"I don't know, I didn't listen!"
-- Arthur Dent and Ford Prefect in Douglas Adams'
"The Hitchhiker's Guide to the Galaxy"

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages