Get image paths that is relative location from the current buffer. Related issue #150

This commit is contained in:
mattn committed 2013-09-19 02:03:00 +09:00
1 parent 9475526c1f
commit 9c17334509
3 files changed
+3 -12

No files matched your search

+1 -4
View File
@@ -447,10 +447,7 @@ function! emmet#lang#html#imageSize()
if fn =~ '^\s*$'
return
elseif fn !~ '^\(/\|http\)'
let fn = resolve(expand(fn))
if !filereadable(fn)
let fn = simplify(expand('%:h') . '/' . fn)
endif
let fn = simplify(expand('%:h') . '/' . fn)
endif
let [width, height] = emmet#util#getImageSize(fn)