mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
check empty.
This commit is contained in:
@@ -99,7 +99,9 @@ function! zencoding#lang#haml#imageSize()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let fn = current.attr.src
|
let fn = current.attr.src
|
||||||
if fn !~ '^\(/\|http\)'
|
if fn =~ '^\s*$'
|
||||||
|
return
|
||||||
|
elseif fn !~ '^\(/\|http\)'
|
||||||
let fn = simplify(expand('%:h') . '/' . fn)
|
let fn = simplify(expand('%:h') . '/' . fn)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -387,7 +387,9 @@ function! zencoding#lang#html#imageSize()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let fn = current.attr.src
|
let fn = current.attr.src
|
||||||
if fn !~ '^\(/\|http\)'
|
if fn =~ '^\s*$'
|
||||||
|
return
|
||||||
|
elseif fn !~ '^\(/\|http\)'
|
||||||
let fn = simplify(expand('%:h') . '/' . fn)
|
let fn = simplify(expand('%:h') . '/' . fn)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,9 @@ function! zencoding#lang#slim#imageSize()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let fn = current.attr.src
|
let fn = current.attr.src
|
||||||
if fn !~ '^\(/\|http\)'
|
if fn =~ '^\s*$'
|
||||||
|
return
|
||||||
|
elseif fn !~ '^\(/\|http\)'
|
||||||
let fn = simplify(expand('%:h') . '/' . fn)
|
let fn = simplify(expand('%:h') . '/' . fn)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user