Karsten Hopp 8202d7
To: vim-dev@vim.org
Karsten Hopp 8202d7
Subject: Patch 7.1.138
Karsten Hopp 8202d7
Fcc: outbox
Karsten Hopp 8202d7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8202d7
Mime-Version: 1.0
Karsten Hopp 8202d7
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 8202d7
Content-Transfer-Encoding: 8bit
Karsten Hopp 8202d7
------------
Karsten Hopp 8202d7
Karsten Hopp 8202d7
Patch 7.1.138
Karsten Hopp 8202d7
Problem:    The Perl Msg() function doesn't stop when "q" is typed at the more
Karsten Hopp 8202d7
	    prompt. (Hari Krishna Dara)
Karsten Hopp 8202d7
Solution:   Check got_int.
Karsten Hopp 8202d7
Files:	    src/if_perl.xs
Karsten Hopp 8202d7
Karsten Hopp 8202d7
Karsten Hopp 8202d7
*** ../vim-7.1.137/src/if_perl.xs	Sat Sep 15 14:48:57 2007
Karsten Hopp 8202d7
--- src/if_perl.xs	Wed Oct  3 17:00:16 2007
Karsten Hopp 8202d7
***************
Karsten Hopp 8202d7
*** 445,457 ****
Karsten Hopp 8202d7
      char *next;
Karsten Hopp 8202d7
      char *token = (char *)s;
Karsten Hopp 8202d7
  
Karsten Hopp 8202d7
!     while ((next = strchr(token, '\n')))
Karsten Hopp 8202d7
      {
Karsten Hopp 8202d7
  	*next++ = '\0';			/* replace \n with \0 */
Karsten Hopp 8202d7
  	msg_attr((char_u *)token, attr);
Karsten Hopp 8202d7
  	token = next;
Karsten Hopp 8202d7
      }
Karsten Hopp 8202d7
!     if (*token)
Karsten Hopp 8202d7
  	msg_attr((char_u *)token, attr);
Karsten Hopp 8202d7
  }
Karsten Hopp 8202d7
  
Karsten Hopp 8202d7
--- 445,457 ----
Karsten Hopp 8202d7
      char *next;
Karsten Hopp 8202d7
      char *token = (char *)s;
Karsten Hopp 8202d7
  
Karsten Hopp 8202d7
!     while ((next = strchr(token, '\n')) && !got_int)
Karsten Hopp 8202d7
      {
Karsten Hopp 8202d7
  	*next++ = '\0';			/* replace \n with \0 */
Karsten Hopp 8202d7
  	msg_attr((char_u *)token, attr);
Karsten Hopp 8202d7
  	token = next;
Karsten Hopp 8202d7
      }
Karsten Hopp 8202d7
!     if (*token && !got_int)
Karsten Hopp 8202d7
  	msg_attr((char_u *)token, attr);
Karsten Hopp 8202d7
  }
Karsten Hopp 8202d7
  
Karsten Hopp 8202d7
*** ../vim-7.1.137/src/version.c	Sun Oct  7 15:44:28 2007
Karsten Hopp 8202d7
--- src/version.c	Tue Oct  9 10:45:08 2007
Karsten Hopp 8202d7
***************
Karsten Hopp 8202d7
*** 668,669 ****
Karsten Hopp 8202d7
--- 668,671 ----
Karsten Hopp 8202d7
  {   /* Add new patch number below this line */
Karsten Hopp 8202d7
+ /**/
Karsten Hopp 8202d7
+     138,
Karsten Hopp 8202d7
  /**/
Karsten Hopp 8202d7
Karsten Hopp 8202d7
-- 
Karsten Hopp 8202d7
A consultant is a person who takes your money and annoys your employees while
Karsten Hopp 8202d7
tirelessly searching for the best way to extend the consulting contract.
Karsten Hopp 8202d7
				(Scott Adams - The Dilbert principle)
Karsten Hopp 8202d7
Karsten Hopp 8202d7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8202d7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8202d7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 8202d7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///