Skip to content

Commit 6fe6e26

Browse files
committed
Don't error out when vim-shell is not installed (issue #7)
This is the most obscure interaction of syntax and semantics I have found in the 5+ years I've been writing Vim script now :-( For more information, see issue #7 on GitHub: #7
1 parent d780f0a commit 6fe6e26

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ from the source code of the miscellaneous scripts using the Python module
3838
<!-- Start of generated documentation -->
3939

4040
The documentation of the 80 functions below was extracted from
41-
15 Vim scripts on June 26, 2013 at 00:09.
41+
15 Vim scripts on June 26, 2013 at 10:55.
4242

4343
### Handling of special buffers
4444

autoload/xolox/misc.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" The version of my miscellaneous scripts.
22
"
33
" Author: Peter Odding <[email protected]>
4-
" Last Change: June 25, 2013
4+
" Last Change: June 26, 2013
55
" URL: http://peterodding.com/code/vim/misc/
66

7-
let g:xolox#misc#version = '1.8.3'
7+
let g:xolox#misc#version = '1.8.4'

autoload/xolox/misc/os.vim

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Operating system interfaces.
22
"
33
" Author: Peter Odding <[email protected]>
4-
" Last Change: June 25, 2013
4+
" Last Change: June , 2013
55
" URL: http://peterodding.com/code/vim/misc/
66

77
function! xolox#misc#os#is_mac() " {{{1
@@ -250,11 +250,13 @@ function! xolox#misc#os#can_use_dll() " {{{1
250250
" and c) the compiled DLL included in vim-shell works, we can use the
251251
" vim-shell plug-in to execute external commands! Returns 1 (true)
252252
" if we can use the DLL, 0 (false) otherwise.
253+
let can_use_dll = 0
253254
try
254-
return xolox#shell#can_use_dll()
255+
let can_use_dll = xolox#shell#can_use_dll()
255256
catch /^Vim\%((\a\+)\)\=:E117/
256-
return 0
257+
" Silence E117.
257258
endtry
259+
return can_use_dll
258260
endfunction
259261

260262
function! s:readfile(fname, label, cmd) " {{{1

doc/misc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ from the source code of the miscellaneous scripts using the Python module
151151
'vimdoctool.py' included in vim-tools [5].
152152

153153
The documentation of the 80 functions below was extracted from 15 Vim scripts
154-
on June 26, 2013 at 00:09.
154+
on June 26, 2013 at 10:55.
155155

156156
-------------------------------------------------------------------------------
157157
*misc-handling-of-special-buffers*

0 commit comments

Comments
 (0)