comparison src/misc1.c @ 6012:3248c6e40aee v7.4.346

updated for version 7.4.346 Problem: Indent is not updated when changing 'breakindentopt'. (itchyny) Solution: Do not cache "brishift". (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 26 Jun 2014 21:24:56 +0200
parents ea2c5dfee1b0
children 0b7586868f6d
comparison
equal deleted inserted replaced
6011:e11fcef66289 6012:3248c6e40aee
511 { 511 {
512 prev_line = line; 512 prev_line = line;
513 prev_ts = wp->w_buffer->b_p_ts; 513 prev_ts = wp->w_buffer->b_p_ts;
514 prev_tick = wp->w_buffer->b_changedtick; 514 prev_tick = wp->w_buffer->b_changedtick;
515 prev_indent = get_indent_str(line, 515 prev_indent = get_indent_str(line,
516 (int)wp->w_buffer->b_p_ts, wp->w_p_list) + wp->w_p_brishift; 516 (int)wp->w_buffer->b_p_ts, wp->w_p_list);
517 } 517 }
518 bri = prev_indent + wp->w_p_brishift;
518 519
519 /* indent minus the length of the showbreak string */ 520 /* indent minus the length of the showbreak string */
520 bri = prev_indent;
521 if (wp->w_p_brisbr) 521 if (wp->w_p_brisbr)
522 bri -= vim_strsize(p_sbr); 522 bri -= vim_strsize(p_sbr);
523 523
524 /* Add offset for number column, if 'n' is in 'cpoptions' */ 524 /* Add offset for number column, if 'n' is in 'cpoptions' */
525 bri += win_col_off2(wp); 525 bri += win_col_off2(wp);