Skip to content

Commit

Permalink
Merge pull request #472 from tomtomjhj/ex-fnameescape
Browse files Browse the repository at this point in the history
fix: fnameescape args for ex action
  • Loading branch information
lambdalisue committed May 25, 2023
2 parents dae5eb2 + bc40998 commit f7f41b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/fern/scheme/file/mapping/ex.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function! s:map_ex(helper) abort
return
endif
call feedkeys("\<Home>", 'in')
let expr = join(map(copy(nodes), { _, v -> fnamemodify(v._path, ':~:.') }), ' ')
let expr = join(map(copy(nodes), { _, v -> fnameescape(fnamemodify(v._path, ':~:.')) }), ' ')
let expr = input(':', ' ' . expr, 'command')
if empty(expr)
return
Expand Down
2 changes: 1 addition & 1 deletion doc/fern.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ The following mappings/actions are only available on file:// scheme.
*<Plug>(fern-action-ex)*
*<Plug>(fern-action-ex=)*
Open a prompt to execute an Ex command with a path of cursor node or
paths of marked nodes.
paths of marked nodes. The paths are |fnameescape()|ed.
You can use a "=" variant to apply values to the prompt and/or submit
a value like:
>
Expand Down

0 comments on commit f7f41b5

Please sign in to comment.