diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-10 16:10:37 +0100 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2026-09-10 20:05:49 +0100 |
| commit | 9dd0eeb6eab9c7f070a39b792d93f6ceffe63d4a (patch) | |
| tree | de61a9667f35e10802cdc5fdb19e69926c1845c6 /runtime/lua/vim/fs.lua | |
| parent | e973eb4a8ff5e3082de401b4667ee92ba4777847 (diff) | |
| download | rneovim-9dd0eeb6eab9c7f070a39b792d93f6ceffe63d4a.tar.gz rneovim-9dd0eeb6eab9c7f070a39b792d93f6ceffe63d4a.tar.bz2 rneovim-9dd0eeb6eab9c7f070a39b792d93f6ceffe63d4a.zip | |
refactor(help): reuse help.lua to generate build tags
Make gen_helptags.lua call help.lua instead of keeping its own tag
parser. Builds and :helptags now use the same code.
Allow the shared code to run without Neovim, and fail the build when tag
generation reports an error.
AI-assisted
Diffstat (limited to 'runtime/lua/vim/fs.lua')
| -rw-r--r-- | runtime/lua/vim/fs.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua index 1c50ce6ca7..7cab745297 100644 --- a/runtime/lua/vim/fs.lua +++ b/runtime/lua/vim/fs.lua @@ -44,8 +44,8 @@ local uv = vim.uv local M = {} -local iswin = vim.fn.has('win32') == 1 -local os_sep = iswin and '\\' or '/' +local os_sep = package.config:sub(1, 1) +local iswin = os_sep == '\\' --- Iterate over all the parents of the given path (not expanded/resolved, the caller must do that). --- |