diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-vim/languagetool/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-vim/languagetool/files')
-rw-r--r-- | app-vim/languagetool/files/languagetool-1.29-script.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-vim/languagetool/files/languagetool-1.29-script.patch b/app-vim/languagetool/files/languagetool-1.29-script.patch new file mode 100644 index 000000000000..f2737feca8c9 --- /dev/null +++ b/app-vim/languagetool/files/languagetool-1.29-script.patch @@ -0,0 +1,38 @@ +Use launcher script instead of directly running from the jar file. + +--- languagetool-1.29/plugin/LanguageTool.vim ++++ languagetool-1.29/plugin/LanguageTool.vim +@@ -162,23 +162,6 @@ + endif + endif + endif +- +- let s:languagetool_jar = exists("g:languagetool_jar") +- \ ? g:languagetool_jar +- \ : $HOME . '/languagetool/languagetool-commandline.jar' +- +- if !filereadable(s:languagetool_jar) +- " Hmmm, can't find the jar file. Try again with expand() in case user +- " set it up as: let g:languagetool_jar = '$HOME/languagetool-commandline.jar' +- let l:languagetool_jar = expand(s:languagetool_jar) +- if !filereadable(expand(l:languagetool_jar)) +- echomsg "LanguageTool cannot be found at: " . s:languagetool_jar +- echomsg "You need to install LanguageTool and/or set up g:languagetool_jar" +- echomsg "to indicate the location of the languagetool-commandline.jar file." +- return -1 +- endif +- let s:languagetool_jar = l:languagetool_jar +- endif + return 0 + endfunction + +@@ -242,8 +225,7 @@ + let l:range = a:line1 . ',' . a:line2 + silent exe l:range . 'w!' . l:tmpfilename + +- let l:languagetool_cmd = 'java' +- \ . ' -jar ' . s:languagetool_jar ++ let l:languagetool_cmd = 'languagetool' + \ . ' -c ' . s:languagetool_encoding + \ . (empty(s:languagetool_disable_rules) ? '' : ' -d '.s:languagetool_disable_rules) + \ . ' -l ' . s:languagetool_lang |