mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
lint
This commit is contained in:
@@ -8729,8 +8729,9 @@ static void f_foldtextresult(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
fold_count = foldedCount(curwin, lnum, &foldinfo);
|
fold_count = foldedCount(curwin, lnum, &foldinfo);
|
||||||
if (fold_count > 0) {
|
if (fold_count > 0) {
|
||||||
text = get_foldtext(curwin, lnum, lnum + fold_count - 1, &foldinfo, buf);
|
text = get_foldtext(curwin, lnum, lnum + fold_count - 1, &foldinfo, buf);
|
||||||
if (text == buf)
|
if (text == buf) {
|
||||||
text = vim_strsave(text);
|
text = vim_strsave(text);
|
||||||
|
}
|
||||||
rettv->vval.v_string = text;
|
rettv->vval.v_string = text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user