Skip to content

Commit b1f7ca4

Browse files
authored
Merge pull request #32 from andersonba/master
Escape the current path in keywordprg
2 parents 825853f + 670b541 commit b1f7ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/fish.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ endif
2929
" Use the 'man' wrapper function in fish to include fish's man pages.
3030
" Have to use a script for this; 'fish -c man' would make the the man page an
3131
" argument to fish instead of man.
32-
execute 'setlocal keywordprg=fish\ '.expand('<sfile>:p:h:h').'/bin/man.fish'
32+
execute 'setlocal keywordprg=fish\ '.escape(expand('<sfile>:p:h:h'), ' ').'/bin/man.fish'
3333

3434
let b:match_words =
3535
\ escape('<%(begin|function|if|switch|while|for)>:<end>', '<>%|)')

0 commit comments

Comments
 (0)