|
|
073263 |
To: vim_dev@googlegroups.com
|
|
|
073263 |
Subject: Patch 7.4.346
|
|
|
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.346 (after 7.4.338)
|
|
|
073263 |
Problem: Indent is not updated when changing 'breakindentopt'. (itchyny)
|
|
|
073263 |
Solution: Do not cache "brishift". (Christian Brabandt)
|
|
|
073263 |
Files: src/misc1.c
|
|
|
073263 |
|
|
|
073263 |
|
|
|
073263 |
*** ../vim-7.4.345/src/misc1.c 2014-06-25 22:55:34.783474435 +0200
|
|
|
073263 |
--- src/misc1.c 2014-06-26 21:15:46.970516542 +0200
|
|
|
073263 |
***************
|
|
|
073263 |
*** 513,523 ****
|
|
|
073263 |
prev_ts = wp->w_buffer->b_p_ts;
|
|
|
073263 |
prev_tick = wp->w_buffer->b_changedtick;
|
|
|
073263 |
prev_indent = get_indent_str(line,
|
|
|
073263 |
! (int)wp->w_buffer->b_p_ts, wp->w_p_list) + wp->w_p_brishift;
|
|
|
073263 |
}
|
|
|
073263 |
|
|
|
073263 |
/* indent minus the length of the showbreak string */
|
|
|
073263 |
- bri = prev_indent;
|
|
|
073263 |
if (wp->w_p_brisbr)
|
|
|
073263 |
bri -= vim_strsize(p_sbr);
|
|
|
073263 |
|
|
|
073263 |
--- 513,523 ----
|
|
|
073263 |
prev_ts = wp->w_buffer->b_p_ts;
|
|
|
073263 |
prev_tick = wp->w_buffer->b_changedtick;
|
|
|
073263 |
prev_indent = get_indent_str(line,
|
|
|
073263 |
! (int)wp->w_buffer->b_p_ts, wp->w_p_list);
|
|
|
073263 |
}
|
|
|
073263 |
+ bri = prev_indent + wp->w_p_brishift;
|
|
|
073263 |
|
|
|
073263 |
/* indent minus the length of the showbreak string */
|
|
|
073263 |
if (wp->w_p_brisbr)
|
|
|
073263 |
bri -= vim_strsize(p_sbr);
|
|
|
073263 |
|
|
|
073263 |
*** ../vim-7.4.345/src/version.c 2014-06-25 22:55:34.783474435 +0200
|
|
|
073263 |
--- src/version.c 2014-06-26 21:17:10.342519697 +0200
|
|
|
073263 |
***************
|
|
|
073263 |
*** 736,737 ****
|
|
|
073263 |
--- 736,739 ----
|
|
|
073263 |
{ /* Add new patch number below this line */
|
|
|
073263 |
+ /**/
|
|
|
073263 |
+ 346,
|
|
|
073263 |
/**/
|
|
|
073263 |
|
|
|
073263 |
--
|
|
|
073263 |
A computer programmer is a device for turning requirements into
|
|
|
073263 |
undocumented features. It runs on cola, pizza and Dilbert cartoons.
|
|
|
073263 |
Bram Moolenaar
|
|
|
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 ///
|