mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 04:34:26 +08:00
[RG] Use 'cd .' as the dummy command on Windows
This commit is contained in:
@@ -938,7 +938,7 @@ function! fzf#vim#grep2(command_prefix, query, ...)
|
|||||||
let name = join(words, '-')
|
let name = join(words, '-')
|
||||||
let fallback = s:is_win ? '' : ' || :'
|
let fallback = s:is_win ? '' : ' || :'
|
||||||
let opts = {
|
let opts = {
|
||||||
\ 'source': ':',
|
\ 'source': s:is_win ? 'cd .' : ':',
|
||||||
\ 'options': ['--ansi', '--prompt', toupper(name).'> ', '--query', a:query,
|
\ 'options': ['--ansi', '--prompt', toupper(name).'> ', '--query', a:query,
|
||||||
\ '--disabled',
|
\ '--disabled',
|
||||||
\ '--bind', 'start:reload:'.a:command_prefix.' '.fzf#shellescape(a:query),
|
\ '--bind', 'start:reload:'.a:command_prefix.' '.fzf#shellescape(a:query),
|
||||||
|
|||||||
Reference in New Issue
Block a user