Skip to content

Commit

Permalink
Bug fix: %s/xolox#open#shell/xolox#open#file/
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Sep 19, 2010
1 parent 0efa5a9 commit 452e951
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions autoload.vim
@@ -1,6 +1,6 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
" Last Change: September 17, 2010
" Last Change: September 19, 2010
" URL: http://peterodding.com/code/vim/shell/

if !exists('s:script')
Expand All @@ -13,14 +13,14 @@ endif
function! xolox#shell#open_cmd(arg) " -- implementation of the :Open command {{{1
if a:arg !~ '\S'
if !s:open_at_cursor()
call xolox#open#shell(expand('%:p:h'))
call xolox#open#file(expand('%:p:h'))
endif
elseif a:arg =~ g:shell_patt_url || a:arg =~ g:shell_patt_mail
call xolox#open#url(a:arg)
else
let arg = fnamemodify(a:arg, ':p')
if isdirectory(arg) || filereadable(arg)
call xolox#open#shell(arg)
call xolox#open#file(arg)
else
let msg = "%s: I don't know how to open %s!"
echoerr printf(msg, s:script, string(a:arg))
Expand Down Expand Up @@ -52,7 +52,7 @@ function! s:open_at_cursor()
let match = expand(match)
endif
if match != '' && (isdirectory(match) || filereadable(match))
call xolox#open#shell(match)
call xolox#open#file(match)
endif
endif
endfunction
Expand Down
4 changes: 2 additions & 2 deletions shell.vim
@@ -1,9 +1,9 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
" Last Change: September 18, 2010
" Last Change: September 19, 2010
" URL: http://peterodding.com/code/vim/shell/
" License: MIT
" Version: 0.8
" Version: 0.8.1

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

0 comments on commit 452e951

Please sign in to comment.