diff options
| author | moxie <moxie@3kgcat.fi> | 2026-03-16 01:32:23 +0200 |
|---|---|---|
| committer | moxie <moxie@3kgcat.fi> | 2026-03-16 01:32:23 +0200 |
| commit | d4eec399dea52337e166b9cfd43f719433418cce (patch) | |
| tree | 57213b425c37f268522566310fcbabcfbcdaaacf /doc | |
| parent | a3bec7841215098ca4492a2a38336be76e7fbf4c (diff) | |
refactor: simplify resolve()
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/muwiki.txt | 4 |
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)" }) |
