This commit is contained in:
joe di castro
2013-08-07 18:57:19 +02:00
parent 455f6f5760
commit 7fb711c257
4 changed files with 22 additions and 8 deletions
+4 -1
View File
@@ -120,7 +120,10 @@ function! emmet#lang#haml#imageSize()
if fn =~ '^\s*$'
return
elseif fn !~ '^\(/\|http\)'
let fn = simplify(expand('%:h') . '/' . fn)
let fn = resolve(expand(fn))
if !filereadable(fn)
let fn = simplify(expand('%:h') . '/' . fn)
endif
endif
let [width, height] = emmet#util#getImageSize(fn)
+4 -1
View File
@@ -444,7 +444,10 @@ function! emmet#lang#html#imageSize()
if fn =~ '^\s*$'
return
elseif fn !~ '^\(/\|http\)'
let fn = simplify(expand('%:h') . '/' . fn)
let fn = resolve(expand(fn))
if !filereadable(fn)
let fn = simplify(expand('%:h') . '/' . fn)
endif
endif
let [width, height] = emmet#util#getImageSize(fn)
+4 -1
View File
@@ -98,7 +98,10 @@ function! emmet#lang#slim#imageSize()
if fn =~ '^\s*$'
return
elseif fn !~ '^\(/\|http\)'
let fn = simplify(expand('%:h') . '/' . fn)
let fn = resolve(expand(fn))
if !filereadable(fn)
let fn = simplify(expand('%:h') . '/' . fn)
endif
endif
let [width, height] = emmet#util#getImageSize(fn)