Patch 8.1.1492
Problem:    MS-Windows: when "!" is in 'guioptions' ":!start" fails.
Solution:   Do not use a terminal window when the shell command begins with
            "!start". (Yasuhiro Matsumoto, closes #4504)
Files:      src/misc2.c, src/os_win32.c


*** ../vim-8.1.1491/src/misc2.c 2019-06-01 17:13:15.884517713 +0200
--- src/misc2.c 2019-06-08 12:04:36.632279179 +0200
***************
*** 3251,3257 ****
        /* The external command may update a tags file, clear cached tags. */
        tag_freematch();
  
!       if (cmd == NULL || *p_sxq == NUL)
            retval = mch_call_shell(cmd, opt);
        else
        {
--- 3251,3261 ----
        /* The external command may update a tags file, clear cached tags. */
        tag_freematch();
  
!       if (cmd == NULL || *p_sxq == NUL
! #if defined(FEAT_GUI_MSWIN) && defined(FEAT_TERMINAL)
!               || vim_strchr(p_go, GO_TERMINAL) != NULL
! #endif
!               )
            retval = mch_call_shell(cmd, opt);
        else
        {
*** ../vim-8.1.1491/src/os_win32.c      2019-05-28 23:08:12.072648675 +0200
--- src/os_win32.c      2019-06-08 12:03:45.620413374 +0200
***************
*** 4640,4659 ****
      }
  #endif
  #if defined(FEAT_GUI) && defined(FEAT_TERMINAL)
!     /* TODO: make the terminal window work with input or output redirected. */
      if (
  # ifdef VIMDLL
!       gui.in_use &&
  # endif
!       vim_strchr(p_go, GO_TERMINAL) != NULL
         && (options & (SHELL_FILTER|SHELL_DOOUT|SHELL_WRITE|SHELL_READ)) == 0)
      {
!       /* Use a terminal window to run the command in. */
!       x = mch_call_shell_terminal(cmd, options);
  # ifdef FEAT_TITLE
!       resettitle();
  # endif
!       return x;
      }
  #endif
  
--- 4640,4669 ----
      }
  #endif
  #if defined(FEAT_GUI) && defined(FEAT_TERMINAL)
!     // TODO: make the terminal window work with input or output redirected.
      if (
  # ifdef VIMDLL
!           gui.in_use &&
  # endif
!           vim_strchr(p_go, GO_TERMINAL) != NULL
         && (options & (SHELL_FILTER|SHELL_DOOUT|SHELL_WRITE|SHELL_READ)) == 0)
      {
!       char_u  *cmdbase = cmd;
! 
!       // Skip a leading quote and (.
!       while (*cmdbase == '"' || *cmdbase == '(')
!           ++cmdbase;
! 
!       // Check the command does not begin with "start "
!       if (STRNICMP(cmdbase, "start", 5) != 0 || !VIM_ISWHITE(cmdbase[5]))
!       {
!           // Use a terminal window to run the command in.
!           x = mch_call_shell_terminal(cmd, options);
  # ifdef FEAT_TITLE
!           resettitle();
  # endif
!           return x;
!       }
      }
  #endif
  
*** ../vim-8.1.1491/src/version.c       2019-06-07 23:15:16.651436336 +0200
--- src/version.c       2019-06-08 12:00:07.149036974 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1492,
  /**/

-- 
Support your right to bare arms!  Wear short sleeves!

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/201906081005.x58A5c6d018770%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui