Skip to content

Commit ad20238

Browse files
author
Romain Lafourcade
committed
Prevent # from being transformed into %23
1 parent de966e6 commit ad20238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/devdocs.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let s:stub = get(g:, "devdocs_open_command", <SID>Cmd()) . " 'https://devdocs.io
3232

3333
" Build the command
3434
command! -bang -nargs=* DD silent! call system(len(split(<q-args>, ' ')) == 0 ?
35-
\ s:stub . (expand('<bang>') == "!" || get(g:, 'devdocs_enable_scoping', 0) == 1 ? '' : &filetype) . ' ' . expand('<cword>') . "'" : len(split(<q-args>, ' ')) == 1 ?
36-
\ s:stub . (expand('<bang>') == "!" || get(g:, 'devdocs_enable_scoping', 0) == 1 ? '' : &filetype) . ' ' . <q-args> . "'" : s:stub . <q-args> . "'")
35+
\ s:stub . (expand('<bang>') == "!" || get(g:, 'devdocs_enable_scoping', 0) == 1 ? '' : &filetype) . '%20' . expand('<cword>') . "'" : len(split(<q-args>, ' ')) == 1 ?
36+
\ s:stub . (expand('<bang>') == "!" || get(g:, 'devdocs_enable_scoping', 0) == 1 ? '' : &filetype) . '%20' . <q-args> . "'" : s:stub . <q-args> . "'")
3737

3838
let &cpo = s:save_cpo

0 commit comments

Comments
 (0)