1
0
forked from aniani/vim

patch 9.0.0244: cannot easily get the list of sourced scripts

Problem:    Cannot easily get the list of sourced scripts.
Solution:   Add the getscriptinfo() function. (Yegappan Lakshmanan,
            closes #10957)
This commit is contained in:
Yegappan Lakshmanan
2022-08-22 13:15:13 +01:00
committed by Bram Moolenaar
parent e89aeed43e
commit f768c3d19c
8 changed files with 70 additions and 8 deletions

View File

@@ -33,6 +33,7 @@ char_u *get_scriptname(scid_T id);
void free_scriptnames(void);
void free_autoload_scriptnames(void);
linenr_T get_sourced_lnum(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie);
void f_getscriptinfo(typval_T *argvars, typval_T *rettv);
char_u *getsourceline(int c, void *cookie, int indent, getline_opt_T options);
int sourcing_a_script(exarg_T *eap);
void ex_scriptencoding(exarg_T *eap);