|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.435
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.435
|
|
|
22c937 |
Problem: Line formatting behaves differently when 'linebreak' is set.
|
|
|
22c937 |
(mvxxc)
|
|
|
22c937 |
Solution: Disable 'linebreak' temporarily. (Christian Brabandt)
|
|
|
22c937 |
Files: src/edit.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.434/src/edit.c 2014-08-16 18:13:00.082044726 +0200
|
|
|
22c937 |
--- src/edit.c 2014-09-09 16:21:08.556532751 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 6131,6136 ****
|
|
|
22c937 |
--- 6131,6142 ----
|
|
|
22c937 |
int no_leader = FALSE;
|
|
|
22c937 |
int do_comments = (flags & INSCHAR_DO_COM);
|
|
|
22c937 |
#endif
|
|
|
22c937 |
+ #ifdef FEAT_LINEBREAK
|
|
|
22c937 |
+ int has_lbr = curwin->w_p_lbr;
|
|
|
22c937 |
+
|
|
|
22c937 |
+ /* make sure win_lbr_chartabsize() counts correctly */
|
|
|
22c937 |
+ curwin->w_p_lbr = FALSE;
|
|
|
22c937 |
+ #endif
|
|
|
22c937 |
|
|
|
22c937 |
/*
|
|
|
22c937 |
* When 'ai' is off we don't want a space under the cursor to be
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 6483,6488 ****
|
|
|
22c937 |
--- 6489,6497 ----
|
|
|
22c937 |
if (save_char != NUL) /* put back space after cursor */
|
|
|
22c937 |
pchar_cursor(save_char);
|
|
|
22c937 |
|
|
|
22c937 |
+ #ifdef FEAT_LINEBREAK
|
|
|
22c937 |
+ curwin->w_p_lbr = has_lbr;
|
|
|
22c937 |
+ #endif
|
|
|
22c937 |
if (!format_only && haveto_redraw)
|
|
|
22c937 |
{
|
|
|
22c937 |
update_topline();
|
|
|
22c937 |
*** ../vim-7.4.434/src/version.c 2014-09-09 16:13:05.040531695 +0200
|
|
|
22c937 |
--- src/version.c 2014-09-09 16:19:57.272532595 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 743,744 ****
|
|
|
22c937 |
--- 743,746 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 435,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
hundred-and-one symptoms of being an internet addict:
|
|
|
22c937 |
109. You actually read -- and enjoy -- lists like this.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|