|
1 | 1 | " Vim script. |
2 | 2 | " Author: Peter Odding <peter@peterodding.com> |
3 | | -" Last Change: November 21, 2011 |
| 3 | +" Last Change: November 24, 2011 |
4 | 4 | " URL: http://peterodding.com/code/vim/lua-inspect/ |
5 | 5 |
|
6 | | -let g:xolox#luainspect#version = '0.4.15' |
| 6 | +let g:xolox#luainspect#version = '0.4.16' |
7 | 7 |
|
8 | 8 | function! xolox#luainspect#toggle_cmd() " {{{1 |
9 | 9 | if !(exists('b:luainspect_disabled') && b:luainspect_disabled) |
@@ -144,14 +144,10 @@ function! s:parse_text(input, search_path) " {{{1 |
144 | 144 | let template = 'lua -e "%s; require ''luainspect4vim'' (io.read ''*a'')"' |
145 | 145 | let command = printf(template, a:search_path) |
146 | 146 | try |
147 | | - let b:luainspect_output = xolox#shell#execute(command, 1, a:input) |
148 | | - catch /^Vim\%((\a\+)\)\=:E117/ |
149 | | - " Ignore missing shell.vim plug-in. |
150 | | - let b:luainspect_output = split(system(command, a:input), "\n") |
151 | | - if v:shell_error |
152 | | - let msg = "luainspect.vim %s: Failed to execute LuaInspect as external process! %s" |
153 | | - throw printf(msg, g:xolox#luainspect#version, strtrans(join(b:luainspect_output, "\n"))) |
154 | | - endif |
| 147 | + let b:luainspect_output = xolox#misc#os#exec(command, a:input) |
| 148 | + catch |
| 149 | + let msg = "luainspect.vim %s: Failed to execute LuaInspect as external process! %s" |
| 150 | + throw printf(msg, g:xolox#luainspect#version, strtrans(join(b:luainspect_output, "\n"))) |
155 | 151 | endtry |
156 | 152 | else |
157 | 153 | redir => output |
|
0 commit comments