Patch 8.2.4438
Problem:    Crash on exit when using cmdline window.
Solution:   Reset "cmdwin_type" before exiting. (closes #9817)
Files:      src/ui.c, src/testdir/test_exit.vim


*** ../vim-8.2.4437/src/ui.c    2022-01-28 15:28:00.212927659 +0000
--- src/ui.c    2022-02-22 12:03:47.497804732 +0000
***************
*** 1065,1070 ****
--- 1065,1073 ----
      if (silent_mode)  // Normal way to exit for "ex -s"
        getout(0);
      STRCPY(IObuff, _("Vim: Error reading input, exiting...\n"));
+ #ifdef FEAT_CMDWIN
+     cmdwin_type = 0;
+ #endif
      preserve_exit();
  }
  
*** ../vim-8.2.4437/src/testdir/test_exit.vim   2020-11-30 16:40:41.303714382 
+0000
--- src/testdir/test_exit.vim   2022-02-22 11:58:51.550550484 +0000
***************
*** 1,6 ****
--- 1,7 ----
  " Tests for exiting Vim.
  
  source shared.vim
+ source check.vim
  
  func Test_exiting()
    let after =<< trim [CODE]
***************
*** 109,112 ****
--- 110,126 ----
    call delete('Xtestout')
  endfunc
  
+ func Test_exit_error_reading_input()
+   CheckNotGui
+ 
+   call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 
'Xtestout')", ":tabnew\<CR>q:"], 'Xscript')
+ 
+   if RunVim([], [], '< Xscript')
+     call assert_equal(['l = 1'], readfile('Xtestout'))
+   endif
+   call delete('Xscript')
+   call delete('Xtestout')
+ endfun
+ 
+ 
  " vim: shiftwidth=2 sts=2 expandtab
*** ../vim-8.2.4437/src/version.c       2022-02-22 11:04:46.526452275 +0000
--- src/version.c       2022-02-22 12:04:12.145742428 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4438,
  /**/

-- 
The sooner you fall behind, the more time you'll have to catch up.

 /// 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/20220222120854.323941C14C4%40moolenaar.net.

Raspunde prin e-mail lui