mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-05-25 01:38:38 +08:00
Fixes #133
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user