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