Patch 8.1.0157
Problem:    Old iTerm2 is not recognized, resulting in stray output.
Solution:   Recognize the termresponse.
Files:      src/term.c


*** ../vim-8.1.0156/src/term.c  2018-07-03 17:16:55.626135028 +0200
--- src/term.c  2018-07-06 23:07:26.257971889 +0200
***************
*** 4659,4675 ****
  
                        if (version == 95)
                        {
!                           /* Mac Terminal.app sends 1;95;0 */
                            if (STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
                            {
                                is_not_xterm = TRUE;
                                is_mac_terminal = TRUE;
                            }
  # ifdef FEAT_MOUSE_SGR
!                           /* iTerm2 sends 0;95;0 */
                            if (STRNCMP(tp + extra - 2, "0;95;0c", 7) == 0)
                                is_iterm2 = TRUE;
  # endif
                        }
  
                        /* Only set 'ttymouse' automatically if it was not set
--- 4659,4679 ----
  
                        if (version == 95)
                        {
!                           // Mac Terminal.app sends 1;95;0
                            if (STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
                            {
                                is_not_xterm = TRUE;
                                is_mac_terminal = TRUE;
                            }
  # ifdef FEAT_MOUSE_SGR
!                           // iTerm2 sends 0;95;0
                            if (STRNCMP(tp + extra - 2, "0;95;0c", 7) == 0)
                                is_iterm2 = TRUE;
+                           else
  # endif
+                           // old iTerm2 sends 0;95;
+                           if (STRNCMP(tp + extra - 2, "0;95;c", 6) == 0)
+                               is_not_xterm = TRUE;
                        }
  
                        /* Only set 'ttymouse' automatically if it was not set
*** ../vim-8.1.0156/src/version.c       2018-07-06 22:51:58.010808660 +0200
--- src/version.c       2018-07-06 23:10:48.856915992 +0200
***************
*** 791,792 ****
--- 791,794 ----
  {   /* Add new patch number below this line */
+ /**/
+     157,
  /**/


-- 
Press any key to continue, press any other key to quit.

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui