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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211214084208.24D391C014A%40moolenaar.net.

Raspunde prin e-mail lui