Skip to content

Commit de1303d

Browse files
committed
Bug fix: Open either file or directory, but never both!
1 parent dc3448e commit de1303d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎autoload.vim‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function! s:open_at_cursor()
4040
endif
4141
if match != ''
4242
call xolox#open#url(match)
43+
return 1
4344
else
4445
" As a last resort try to match a filename at the text cursor position.
4546
let line = getline('.')
@@ -52,6 +53,7 @@ function! s:open_at_cursor()
5253
endif
5354
if match != '' && (isdirectory(match) || filereadable(match))
5455
call xolox#open#file(match)
56+
return 1
5557
endif
5658
endif
5759
endfunction

‎shell.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: September 19, 2010
44
" URL: http://peterodding.com/code/vim/shell/
55
" License: MIT
6-
" Version: 0.8.1
6+
" Version: 0.8.2
77

88
" Support for automatic update using the GLVS plug-in.
99
" GetLatestVimScripts: 3123 1 :AutoInstall: shell.zip

0 commit comments

Comments
 (0)