Permalink
Browse files

Merge pull request #2 from Jagua/fix_More_targets_than_List_items

Fix error when g:opengoogletranslate#openbrowsercmd is empty.
  • Loading branch information...
2 parents 892242d + c80d857 commit 175b2a31d5f69c5671b38817dc670a836bc8b419 @haya14busa committed on GitHub Nov 28, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/opengoogletranslate.vim
@@ -8,7 +8,7 @@ let g:opengoogletranslate#openbrowsercmd = get(g:, 'opengoogletranslate#openbrow
" TODO: support removing comment prefix in given input?
function! opengoogletranslate#open(...) abort
let url = call('opengoogletranslate#url', a:000)
- let [cmd; args] = split(g:opengoogletranslate#openbrowsercmd, ' ')
+ let [cmd; args] = split(g:opengoogletranslate#openbrowsercmd, ' ', 1)
if executable(cmd) ==# 1
call job_start([cmd] + args + [url])
return

0 comments on commit 175b2a3

Please sign in to comment.