[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim-dev
Subject:    Patch 6.1.167
From:       Bram Moolenaar <Bram () moolenaar ! net>
Date:       2002-08-30 20:15:41
[Download RAW message or body]


Patch 6.1.167
Problem:    When giving a negative argument to ":retab" strange things start
	    happening. (Hans Ginzel)
Solution:   Check for a negative value.
Files:	    src/ex_cmds.c


*** ../vim61.166/src/ex_cmds.c	Thu Jul  4 20:55:17 2002
--- src/ex_cmds.c	Fri Aug 30 21:18:31 2002
***************
*** 293,298 ****
--- 293,303 ----
      curwin->w_p_list = 0;	    /* don't want list mode here */
  
      new_ts = getdigits(&(eap->arg));
+     if (new_ts < 0)
+     {
+ 	EMSG(_(e_positive));
+ 	return;
+     }
      if (new_ts == 0)
  	new_ts = curbuf->b_p_ts;
      for (lnum = eap->line1; !got_int && lnum <= eap->line2; ++lnum)
*** ../vim61.166/src/version.c	Wed Aug 28 22:21:28 2002
--- src/version.c	Fri Aug 30 22:13:26 2002
***************
*** 608,609 ****
--- 608,611 ----
  {   /* Add new patch number below this line */
+ /**/
+     167,
  /**/

-- 
GUARD #1:  What, ridden on a horse?
ARTHUR:    Yes!
GUARD #1:  You're using coconuts!
ARTHUR:    What?
GUARD #1:  You've got two empty halves of coconut and you're bangin' 'em
           together.
                                  The Quest for the Holy Grail (Monty Python)

 ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
\\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
 \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic