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

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

View File

@@ -120,10 +120,7 @@ function! emmet#lang#haml#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)