Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't twice escape the directory

Mkdir already is already called with an shellescaped parameter. No need
to quote it a second time for the Rmdir() call on VimExit.

Closes issue #22, reported by Daniel Hahler, thanks!
  • Loading branch information...
commit 2ee31c2cc51e9eb041d09984f92a87444ba62efa 1 parent 50f4001
@chrisbra authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  autoload/SudoEdit.vim
View
3  autoload/SudoEdit.vim
@@ -89,6 +89,7 @@ endfu
fu! <sid>Mkdir(dir) "{{{2
" First remove the directory, it might still be there from last call
+ " parameter 'dir' is already shellescaped()!
call SudoEdit#Rmdir(a:dir)
call system("mkdir ". a:dir)
" Clean up on Exit
@@ -96,7 +97,7 @@ fu! <sid>Mkdir(dir) "{{{2
augroup SudoEditExit
au!
" Clean up when quitting Vim
- exe "au VimLeave * :call SudoEdit#Rmdir('".a:dir. "')"
+ exe "au VimLeave * :call SudoEdit#Rmdir(".a:dir. ")"
augroup END
endif
endfu
Please sign in to comment.
Something went wrong with that request. Please try again.