mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-13 16:28:54 +08:00
Get image paths that is relative location from the current buffer. Related issue #150
This commit is contained in:
1 parent
9475526c1f
commit
9c17334509
3 files changed
+3
-12
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user