lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
d416a73
To: vim_dev@googlegroups.com
d416a73
Subject: Patch 7.3.098
d416a73
Fcc: outbox
d416a73
From: Bram Moolenaar <Bram@moolenaar.net>
d416a73
Mime-Version: 1.0
d416a73
Content-Type: text/plain; charset=UTF-8
d416a73
Content-Transfer-Encoding: 8bit
d416a73
------------
d416a73
d416a73
Patch 7.3.098
d416a73
Problem:    Function that ignores error still causes called_emsg to be set.
d416a73
	    E.g. when expand() fails the status line is disabled.
d416a73
Solution:   Move check for emsg_not_now() up. (James Vega)
d416a73
Files:	    src/message.c
d416a73
d416a73
d416a73
*** ../vim-7.3.097/src/message.c	2010-10-20 21:22:17.000000000 +0200
d416a73
--- src/message.c	2011-01-04 19:19:04.000000000 +0100
d416a73
***************
d416a73
*** 569,574 ****
d416a73
--- 569,578 ----
d416a73
      int		severe;
d416a73
  #endif
d416a73
  
d416a73
+     /* Skip this if not giving error messages at the moment. */
d416a73
+     if (emsg_not_now())
d416a73
+ 	return TRUE;
d416a73
+ 
d416a73
      called_emsg = TRUE;
d416a73
      ex_exitval = 1;
d416a73
  
d416a73
***************
d416a73
*** 581,590 ****
d416a73
      emsg_severe = FALSE;
d416a73
  #endif
d416a73
  
d416a73
-     /* Skip this if not giving error messages at the moment. */
d416a73
-     if (emsg_not_now())
d416a73
- 	return TRUE;
d416a73
- 
d416a73
      if (!emsg_off || vim_strchr(p_debug, 't') != NULL)
d416a73
      {
d416a73
  #ifdef FEAT_EVAL
d416a73
--- 585,590 ----
d416a73
*** ../vim-7.3.097/src/version.c	2011-01-04 19:03:22.000000000 +0100
d416a73
--- src/version.c	2011-01-04 19:24:30.000000000 +0100
d416a73
***************
d416a73
*** 716,717 ****
d416a73
--- 716,719 ----
d416a73
  {   /* Add new patch number below this line */
d416a73
+ /**/
d416a73
+     98,
d416a73
  /**/
d416a73
d416a73
-- 
d416a73
Ed's Radiator Shop: The Best Place in Town to Take a Leak.
d416a73
d416a73
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d416a73
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d416a73
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
d416a73
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///