Karsten Hopp d48e3e
To: vim-dev@vim.org
Karsten Hopp d48e3e
Subject: Patch 7.2.265
Karsten Hopp d48e3e
Fcc: outbox
Karsten Hopp d48e3e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d48e3e
Mime-Version: 1.0
Karsten Hopp d48e3e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d48e3e
Content-Transfer-Encoding: 8bit
Karsten Hopp d48e3e
------------
Karsten Hopp d48e3e
Karsten Hopp d48e3e
Patch 7.2.265
Karsten Hopp d48e3e
Problem:    When using ":silent broken" inside try/catch silency may persist.
Karsten Hopp d48e3e
	    (dr-dr xp)
Karsten Hopp d48e3e
Solution:   Set msg_silent when there is an error and it's bigger than the
Karsten Hopp d48e3e
	    saved value.
Karsten Hopp d48e3e
Files:	    src/ex_docmd.c
Karsten Hopp d48e3e
Karsten Hopp d48e3e
Karsten Hopp d48e3e
*** ../vim-7.2.264/src/ex_docmd.c	2009-07-09 20:13:59.000000000 +0200
Karsten Hopp d48e3e
--- src/ex_docmd.c	2009-09-30 11:40:53.000000000 +0200
Karsten Hopp d48e3e
***************
Karsten Hopp d48e3e
*** 2695,2701 ****
Karsten Hopp d48e3e
      {
Karsten Hopp d48e3e
  	/* messages could be enabled for a serious error, need to check if the
Karsten Hopp d48e3e
  	 * counters don't become negative */
Karsten Hopp d48e3e
! 	if (!did_emsg)
Karsten Hopp d48e3e
  	    msg_silent = save_msg_silent;
Karsten Hopp d48e3e
  	emsg_silent -= did_esilent;
Karsten Hopp d48e3e
  	if (emsg_silent < 0)
Karsten Hopp d48e3e
--- 2695,2701 ----
Karsten Hopp d48e3e
      {
Karsten Hopp d48e3e
  	/* messages could be enabled for a serious error, need to check if the
Karsten Hopp d48e3e
  	 * counters don't become negative */
Karsten Hopp d48e3e
! 	if (!did_emsg || msg_silent > save_msg_silent)
Karsten Hopp d48e3e
  	    msg_silent = save_msg_silent;
Karsten Hopp d48e3e
  	emsg_silent -= did_esilent;
Karsten Hopp d48e3e
  	if (emsg_silent < 0)
Karsten Hopp d48e3e
*** ../vim-7.2.264/src/version.c	2009-09-23 18:14:13.000000000 +0200
Karsten Hopp d48e3e
--- src/version.c	2009-09-30 13:22:47.000000000 +0200
Karsten Hopp d48e3e
***************
Karsten Hopp d48e3e
*** 678,679 ****
Karsten Hopp d48e3e
--- 678,681 ----
Karsten Hopp d48e3e
  {   /* Add new patch number below this line */
Karsten Hopp d48e3e
+ /**/
Karsten Hopp d48e3e
+     265,
Karsten Hopp d48e3e
  /**/
Karsten Hopp d48e3e
Karsten Hopp d48e3e
-- 
Karsten Hopp d48e3e
FIRST HEAD:  Oh! quick! get the sword out I want to cut his head off.
Karsten Hopp d48e3e
THIRD HEAD:  Oh, cut your own head off.
Karsten Hopp d48e3e
SECOND HEAD: Yes - do us all a favour.
Karsten Hopp d48e3e
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp d48e3e
Karsten Hopp d48e3e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d48e3e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d48e3e
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp d48e3e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///