Skip to content

Commit 5b6dbcb

Browse files
committed
Bug fix: Reload messages on Windows showed corrupted filenames
1 parent 54d2c81 commit 5b6dbcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoload/xolox/reload.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
2-
" Last Change: May 21, 2013
2+
" Last Change: May 25, 2013
33
" Author: Peter Odding
44
" URL: http://peterodding.com/code/vim/reload/
55

6-
let g:xolox#reload#version = '0.6.15'
6+
let g:xolox#reload#version = '0.6.16'
77

88
" Patterns to match various types of Vim script names. {{{1
99

@@ -41,7 +41,7 @@ if !exists('s:reload_script_active')
4141
let filename = s:unresolve_scriptname(a:filename)
4242
for [callback, pattern] in s:scripttypes
4343
if filename =~ pattern
44-
let friendly_name = fnamemodify(filename, ':~')
44+
let friendly_name = filename
4545
if pattern =~ 'ftplugin'
4646
" Determine include guard for generic file type plug-ins.
4747
let matches = matchlist(filename, pattern)
@@ -184,7 +184,7 @@ function! s:parse_scriptnames() " {{{2
184184
endfunction
185185

186186
function! s:normalize_path(path) " {{{2
187-
let path = resolve(fnamemodify(a:path, ':p'))
187+
let path = xolox#misc#path#absolute(a:path)
188188
" fnamemodify() doesn't seem to restore the original case on Windows…
189189
return xolox#misc#os#is_win() ? tolower(path) : path
190190
endfunction

0 commit comments

Comments
 (0)