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