diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-05-14 13:02:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-14 13:02:36 -0400 |
| commit | c7f5f44b6091f99ad85db039653b84fb096bc879 (patch) | |
| tree | 9e99c5cc8cf80d46fb087a8b36a14f0e7c4b92d3 /test/functional/vimscript/executable_spec.lua | |
| parent | 8b7b0a5cd61d0bf42c8feab79b5f41dc1dd7c340 (diff) | |
| download | rneovim-c7f5f44b6091f99ad85db039653b84fb096bc879.tar.gz rneovim-c7f5f44b6091f99ad85db039653b84fb096bc879.tar.bz2 rneovim-c7f5f44b6091f99ad85db039653b84fb096bc879.zip | |
refactor(vim.fs): deduplicate by using vim.fn #39782
Problem:
61e99217e684 replaced usages of `vim.fn`. This duplicates non-trivial
logic and may have introduced bugs like 38e38d1b401e.
Later on, b02eeb6a7281 graduated `fnamemodify` to `fast`, so avoiding it
in `vim.fs` is no longer necessary.
Solution:
Use `vim.fn` to deduplicate `vim.fs.dirname()` and `vim.fs.basename()`.
Note: the "nvim -l" test-runner switch from the original PR (#30483) is
already done by 9432e6c1e2e9 (#39676).
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions