aboutsummaryrefslogtreecommitdiff
path: root/doc/muwiki.txt
diff options
context:
space:
mode:
authormoxie <moxie@3kgcat.fi>2026-03-16 01:32:23 +0200
committermoxie <moxie@3kgcat.fi>2026-03-16 01:32:23 +0200
commitd4eec399dea52337e166b9cfd43f719433418cce (patch)
tree57213b425c37f268522566310fcbabcfbcdaaacf /doc/muwiki.txt
parenta3bec7841215098ca4492a2a38336be76e7fbf4c (diff)
refactor: simplify resolve()
Diffstat (limited to 'doc/muwiki.txt')
-rw-r--r--doc/muwiki.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/muwiki.txt b/doc/muwiki.txt
index 92750ae..02d6ced 100644
--- a/doc/muwiki.txt
+++ b/doc/muwiki.txt
@@ -256,13 +256,13 @@ Custom open handler using get_link()~ *muwiki-a
else
-- Open in Neovim for other file types
local utils = require('muwiki.utils')
- local file_path = utils.resolve(link.target, nil)
+ local file_path = utils.resolve(link.target)
vim.cmd('edit ' .. vim.fn.fnameescape(file_path))
end
else
-- Wiki link: open in Neovim
local utils = require('muwiki.utils')
- local file_path = utils.resolve(link.target, nil)
+ local file_path = utils.resolve(link.target)
vim.cmd('edit ' .. vim.fn.fnameescape(file_path))
end
end, { buffer = args.buf, desc = "Open link (custom handler)" })