Escape file name for file to edit

Use `fnameescape` before trying to edit a file when you open it through
a link.
This commit is contained in:
Marty Oehme 2022-01-21 17:13:44 +01:00
parent bd2481d41e
commit c9e490e042
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,12 @@
local action = require 'zettelkasten.action'
before_each(function()
_G.vim = {g = {}, b = {}, loop = {fs_scandir = function() end}}
_G.vim = {
g = {},
b = {},
fn = {fnameescape = function(input) return input end},
loop = {fs_scandir = function() end}
}
end)
after_each(function() _G.vim = nil end)