Skip to content

Commit

Permalink
Do not replace hashtag with current working directory in ! command (#116
Browse files Browse the repository at this point in the history
)
  • Loading branch information
SidOfc committed Aug 30, 2020
1 parent 9a1ff84 commit f0585a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/mkdx.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,7 @@ fun! mkdx#gf(...)
if !do_int && (do_ext || destination =~? '^http' || is_img || !is_plain)
let cmd = executable('open') ? 'open' : (executable('xdg-open') ? 'xdg-open' : '')
if (!empty(cmd))
silent! exec '!' . cmd . ' ' . destination
silent! exec '!' . cmd . ' ' . shellescape(substitute(destination, '#', '\\#', ''))
endif
else
if get(s:util.hlAtCursor(), 0, '') ==? 'mkdxLink'
Expand Down

0 comments on commit f0585a8

Please sign in to comment.