patch 9.1.1603: completion: cannot use autoloaded funcs in 'complete' F{func}

Problem:  completion: cannot use autoloaded funcs in 'complete' F{func}
          (Maxim Kim)
Solution: Make it work (Girish Palya)

fixes: #17869
closes: #17885

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Girish Palya
2025-08-08 12:30:35 +02:00
committed by Christian Brabandt
parent 7132935413
commit 1bfe86a7d3
10 changed files with 299 additions and 63 deletions

View File

@ -42,6 +42,9 @@ set_ref_in_buffers(int copyID)
abort = abort || set_ref_in_callback(&bp->b_ofu_cb, copyID);
if (!abort)
abort = abort || set_ref_in_callback(&bp->b_tsrfu_cb, copyID);
if (!abort && bp->b_p_cpt_cb != NULL)
abort = abort || set_ref_in_cpt_callbacks(bp->b_p_cpt_cb,
bp->b_p_cpt_count, copyID);
#endif
if (!abort)
abort = abort || set_ref_in_callback(&bp->b_tfu_cb, copyID);