diff options
| author | bfredl <bjorn.linse@gmail.com> | 2023-04-19 17:07:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-19 17:07:33 +0200 |
| commit | 3940c435e4058f75b8ecbfc9f9c3b2a2c4b64f37 (patch) | |
| tree | 3c23ed475376a20f2334f5131ebc5b39f6afe343 /src/nvim/runtime.c | |
| parent | ea52961c54797fc27e305eb4bb11a5d2c4cdda58 (diff) | |
| parent | aee6f08ce12a62e9104892702a658a8d3daee4df (diff) | |
| download | rneovim-3940c435e4058f75b8ecbfc9f9c3b2a2c4b64f37.tar.gz rneovim-3940c435e4058f75b8ecbfc9f9c3b2a2c4b64f37.tar.bz2 rneovim-3940c435e4058f75b8ecbfc9f9c3b2a2c4b64f37.zip | |
Merge pull request #23155 from bfredl/nobreak
fix(runtime): do not allow breakcheck inside runtime path calculation
Diffstat (limited to 'src/nvim/runtime.c')
| -rw-r--r-- | src/nvim/runtime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c index 401139a89a..a6ed5c7410 100644 --- a/src/nvim/runtime.c +++ b/src/nvim/runtime.c @@ -470,7 +470,8 @@ int do_in_cached_path(char *name, int flags, DoInRuntimepathCB callback, void *c } int ew_flags = ((flags & DIP_DIR) ? EW_DIR : EW_FILE) - | (flags & DIP_DIRFILE) ? (EW_DIR|EW_FILE) : 0; + | ((flags & DIP_DIRFILE) ? (EW_DIR|EW_FILE) : 0) + | EW_NOBREAK; // Expand wildcards, invoke the callback for each match. char *(pat[]) = { buf }; @@ -670,7 +671,7 @@ static void expand_rtp_entry(RuntimeSearchPath *search_path, Map(String, handle_ int num_files; char **files; char *(pat[]) = { entry }; - if (gen_expand_wildcards(1, pat, &num_files, &files, EW_DIR) == OK) { + if (gen_expand_wildcards(1, pat, &num_files, &files, EW_DIR | EW_NOBREAK) == OK) { for (int i = 0; i < num_files; i++) { push_path(search_path, rtp_used, files[i], after); } |