Skip to content

Commit f7f41b5

Browse files
authored
Merge pull request #472 from tomtomjhj/ex-fnameescape
fix: fnameescape args for ex action
2 parents dae5eb2 + bc40998 commit f7f41b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoload/fern/scheme/file/mapping/ex.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function! s:map_ex(helper) abort
2626
return
2727
endif
2828
call feedkeys("\<Home>", 'in')
29-
let expr = join(map(copy(nodes), { _, v -> fnamemodify(v._path, ':~:.') }), ' ')
29+
let expr = join(map(copy(nodes), { _, v -> fnameescape(fnamemodify(v._path, ':~:.')) }), ' ')
3030
let expr = input(':', ' ' . expr, 'command')
3131
if empty(expr)
3232
return

doc/fern.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ The following mappings/actions are only available on file:// scheme.
11361136
*<Plug>(fern-action-ex)*
11371137
*<Plug>(fern-action-ex=)*
11381138
Open a prompt to execute an Ex command with a path of cursor node or
1139-
paths of marked nodes.
1139+
paths of marked nodes. The paths are |fnameescape()|ed.
11401140
You can use a "=" variant to apply values to the prompt and/or submit
11411141
a value like:
11421142
>

0 commit comments

Comments
 (0)