mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
patch 8.1.0527: using 'shiftwidth' from wrong buffer for folding
Problem: Using 'shiftwidth' from wrong buffer for folding. Solution: Use "buf" instead of "curbuf". (Christian Brabandt)
This commit is contained in:
parent
61fb8d8c67
commit
0c27cbcacf
@ -155,6 +155,7 @@ hasFoldingWin(
|
||||
int low_level = 0;
|
||||
|
||||
checkupdate(win);
|
||||
|
||||
/*
|
||||
* Return quickly when there is no folding at all in this window.
|
||||
*/
|
||||
@ -3219,7 +3220,7 @@ foldlevelIndent(fline_T *flp)
|
||||
flp->lvl = -1;
|
||||
}
|
||||
else
|
||||
flp->lvl = get_indent_buf(buf, lnum) / get_sw_value(curbuf);
|
||||
flp->lvl = get_indent_buf(buf, lnum) / get_sw_value(buf);
|
||||
if (flp->lvl > flp->wp->w_p_fdn)
|
||||
{
|
||||
flp->lvl = flp->wp->w_p_fdn;
|
||||
|
@ -792,6 +792,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
527,
|
||||
/**/
|
||||
526,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user