Skip to content

Commit

Permalink
Use "" to quote the path of dyn_menu_items (#30)
Browse files Browse the repository at this point in the history
* Use "" to quote the path of dyn_menu_items

* Escape the slash
  • Loading branch information
natural-harmonia-gropius authored Jun 20, 2024
1 parent c95e38c commit e02bf11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recentmenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ function update_dyn_menu_items()
for _, item in ipairs(menu_items) do
submenu[#submenu + 1] = {
title = get_dyn_menu_title(item.title, item.hint, item.value[2]),
cmd = string.format("%s '%s'", item.value[1], item.value[2]),
cmd = string.format("%s \"%s\"", item.value[1], item.value[2]:gsub("\\", "\\\\")),
}
end
dyn_menu.submenu = submenu
Expand Down

0 comments on commit e02bf11

Please sign in to comment.