From 9ce1ad69d4ae27d3871b684d94ed24aa4fc9d064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Sun, 5 Oct 2025 15:17:43 -0700 Subject: [PATCH 1/2] fix: `vim.fn.has` returns a number, not a boolean --- lua/luasnip/util/str.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/luasnip/util/str.lua b/lua/luasnip/util/str.lua index 5de570431..047772a58 100644 --- a/lua/luasnip/util/str.lua +++ b/lua/luasnip/util/str.lua @@ -145,7 +145,7 @@ function M.unescaped_pairs(s, left, right) end function M.aupatescape(s) - if vim.fn.has("win32") or vim.fn.has("win64") then + if vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 then -- windows: replace \ with / for au-pattern. s, _ = s:gsub("\\", "/") end From 3f811ff84e8b58f8ec09d2a229f4c3b0bfb3473f Mon Sep 17 00:00:00 2001 From: MariaSolOs Date: Sun, 5 Oct 2025 22:22:59 +0000 Subject: [PATCH 2/2] Auto generate docs --- doc/luasnip.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/luasnip.txt b/doc/luasnip.txt index 90817e754..237d59d64 100644 --- a/doc/luasnip.txt +++ b/doc/luasnip.txt @@ -1,4 +1,4 @@ -*luasnip.txt* For NeoVim 0.7-0.11 Last change: 2025 September 29 +*luasnip.txt* For NeoVim 0.7-0.11 Last change: 2025 October 05 ============================================================================== Table of Contents *luasnip-table-of-contents*