Skip to content

Commit

Permalink
Bug fix for E33: No previous substitute regular expression
Browse files Browse the repository at this point in the history
Must have been sleeping while writing this originally :-|
  • Loading branch information
xolox committed Aug 15, 2010
1 parent fc16d5c commit 8ab66c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions autoload.vim
@@ -1,6 +1,6 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
" Last Change: August 10, 2010
" Last Change: August 15, 2010
" URL: http://peterodding.com/code/vim/shell/

if !exists('s:script')
Expand Down Expand Up @@ -44,7 +44,8 @@ function! s:open_at_cursor()
let match = matchstr(line[0 : idx], '\f*$')
let match .= matchstr(line[idx+1 : -1], '^\f*')
" Expand leading tilde and/or environment variables in filename?
if match =~ '^~' || match =~ '$'
if match =~ '^\~' || match =~ '\$'
" TODO This can return multiple files?!
let match = expand(match)
endif
if !isdirectory(match) && !filereadable(match)
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: August 10, 2010
" Last Change: August 15, 2010
" URL: http://peterodding.com/code/vim/shell/
" License: MIT
" Version: 0.7.1
" Version: 0.7.2

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

0 comments on commit 8ab66c4

Please sign in to comment.