Skip to content
Browse files

s:EditWrapper(): Correct filenames only if g:vikiDirSeparator == '\'

  • Loading branch information...
1 parent 0dbd0fe commit 769246342e7ca919ddbd2771e2c3fd4beff9ab44 @tomtom committed Mar 25, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 autoload/viki.vim
View
6 autoload/viki.vim
@@ -3,8 +3,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-03-25.
-" @Last Change: 2012-03-21.
-" @Revision: 0.915
+" @Last Change: 2012-03-23.
+" @Revision: 0.918
exec 'runtime! autoload/viki/enc_'. substitute(&enc, '[\/<>*+&:?]', '_', 'g') .'.vim'
@@ -718,7 +718,7 @@ endf
function! s:EditWrapper(cmd, fname) "{{{3
" TLogVAR a:cmd, a:fname
let fname = escape(simplify(a:fname), ' %#')
- if !&shellslash && fname !~ '^\w\+://'
+ if g:vikiDirSeparator == '\' && fname !~ '^\w\+://'
let fname = substitute(fname, '/', '\\', 'g')
" TLogVAR fname
endif

0 comments on commit 7692463

Please sign in to comment.
Something went wrong with that request. Please try again.