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