From 9dd0eeb6eab9c7f070a39b792d93f6ceffe63d4a Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Thu, 10 Sep 2026 16:10:37 +0100 Subject: 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 --- runtime/lua/vim/fs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/fs.lua') 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). --- -- cgit