073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.435
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.435
073263
Problem:    Line formatting behaves differently when 'linebreak' is set.
073263
	    (mvxxc)
073263
Solution:   Disable 'linebreak' temporarily. (Christian Brabandt)
073263
Files:	    src/edit.c
073263
073263
073263
*** ../vim-7.4.434/src/edit.c	2014-08-16 18:13:00.082044726 +0200
073263
--- src/edit.c	2014-09-09 16:21:08.556532751 +0200
073263
***************
073263
*** 6131,6136 ****
073263
--- 6131,6142 ----
073263
      int		no_leader = FALSE;
073263
      int		do_comments = (flags & INSCHAR_DO_COM);
073263
  #endif
073263
+ #ifdef FEAT_LINEBREAK
073263
+     int		has_lbr = curwin->w_p_lbr;
073263
+ 
073263
+     /* make sure win_lbr_chartabsize() counts correctly */
073263
+     curwin->w_p_lbr = FALSE;
073263
+ #endif
073263
  
073263
      /*
073263
       * When 'ai' is off we don't want a space under the cursor to be
073263
***************
073263
*** 6483,6488 ****
073263
--- 6489,6497 ----
073263
      if (save_char != NUL)		/* put back space after cursor */
073263
  	pchar_cursor(save_char);
073263
  
073263
+ #ifdef FEAT_LINEBREAK
073263
+     curwin->w_p_lbr = has_lbr;
073263
+ #endif
073263
      if (!format_only && haveto_redraw)
073263
      {
073263
  	update_topline();
073263
*** ../vim-7.4.434/src/version.c	2014-09-09 16:13:05.040531695 +0200
073263
--- src/version.c	2014-09-09 16:19:57.272532595 +0200
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     435,
073263
  /**/
073263
073263
-- 
073263
hundred-and-one symptoms of being an internet addict:
073263
109. You actually read -- and enjoy -- lists like this.
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    ///