make absolute path.

This commit is contained in:
mattn
2010-03-09 03:03:13 +09:00
parent d74c2928a1
commit 8376d08247

View File

@@ -1360,6 +1360,9 @@ function! s:zen_imageSize()
endif
let current = s:zen_parseTag(s:get_content(img_region))
let fn = current.attr['src']
if fn !~ '^\(/\|http\)'
let fn = simplify(expand('%:h') . '/' . fn)
endif
let [w, h] = [-1, -1]
if has('perl')