Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv28597
Modified Files:
texviewer.vim
Log Message:
Relative path under Windows was given with wrong file delimiter
Index: texviewer.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** texviewer.vim 4 Apr 2003 23:24:46 -0000 1.5
--- texviewer.vim 5 Apr 2003 21:35:50 -0000 1.6
***************
*** 329,333 ****
let path1 = a:explfilename
let path2 = a:texfilename
! if has("win32")
let path1 = substitute(path1, '\\', '/', 'ge')
let path2 = substitute(path2, '\\', '/', 'ge')
--- 329,333 ----
let path1 = a:explfilename
let path2 = a:texfilename
! if has("win32") || has("win16") || has("dos32") || has("dos16")
let path1 = substitute(path1, '\\', '/', 'ge')
let path2 = substitute(path2, '\\', '/', 'ge')
***************
*** 343,346 ****
--- 343,349 ----
endif
let relpath = subrelpath.path1
+ if has("win32") || has("win16") || has("dos32") || has("dos16")
+ let relpath = substitute(relpath, '/', "\\", 'ge')
+ endif
return relpath
endfunction " }}}
***************
*** 350,352 ****
let s:doneOnce = 1
! " vim:fdm=marker:nowrap:noet:ff=unix
--- 353,355 ----
let s:doneOnce = 1
! " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4
|