Skip to content

Commit 25d42d4

Browse files
committed
fix: it can regenerate twice
1 parent a3648be commit 25d42d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/cmake-tools/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ function cmake.create_regenerate_on_save_autocmd()
15121512
ss = ss:gsub("}", "\\}")
15131513
ss = ss:gsub("?", "\\?")
15141514
ss = ss:gsub(",", "\\,")
1515-
table.insert(pattern, ss)
1515+
table.insert(pattern, config.cwd .. "/" .. ss)
15161516
end
15171517

15181518
local cwd = config.cwd

0 commit comments

Comments
 (0)