jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.348

073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.348
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.348
073263
Problem:    When using "J1" in 'cinoptions' a line below a continuation line
073263
	    gets too much indent.
073263
Solution:   Fix parenthesis in condition.
073263
Files:	    src/misc1.c
073263
073263
073263
*** ../vim-7.4.347/src/misc1.c	2014-06-26 21:24:53.134537205 +0200
073263
--- src/misc1.c	2014-07-02 16:58:08.854208322 +0200
073263
***************
073263
*** 7497,7505 ****
073263
  	     *			ldfd) {
073263
  	     *		    }
073263
  	     */
073263
! 	    if (curbuf->b_ind_js || (curbuf->b_ind_keep_case_label
073263
! 			   && cin_iscase(skipwhite(ml_get_curline()), FALSE)))
073263
  		amount = get_indent();
073263
  	    else
073263
  		amount = skip_label(lnum, &l);
073263
  
073263
--- 7497,7507 ----
073263
  	     *			ldfd) {
073263
  	     *		    }
073263
  	     */
073263
! 	    if ((curbuf->b_ind_js || curbuf->b_ind_keep_case_label)
073263
! 			   && cin_iscase(skipwhite(ml_get_curline()), FALSE))
073263
  		amount = get_indent();
073263
+ 	    else if (curbuf->b_ind_js)
073263
+ 		amount = get_indent_lnum(lnum);
073263
  	    else
073263
  		amount = skip_label(lnum, &l);
073263
  
073263
*** ../vim-7.4.347/src/version.c	2014-06-26 22:33:47.850693627 +0200
073263
--- src/version.c	2014-07-02 16:46:14.934197383 +0200
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     348,
073263
  /**/
073263
073263
-- 
073263
5 out of 4 people have trouble with fractions.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///