mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
lint
This commit is contained in:
parent
98dd9b8012
commit
123931e65e
@ -8729,8 +8729,9 @@ static void f_foldtextresult(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
fold_count = foldedCount(curwin, lnum, &foldinfo);
|
||||
if (fold_count > 0) {
|
||||
text = get_foldtext(curwin, lnum, lnum + fold_count - 1, &foldinfo, buf);
|
||||
if (text == buf)
|
||||
if (text == buf) {
|
||||
text = vim_strsave(text);
|
||||
}
|
||||
rettv->vval.v_string = text;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user