forked from VimPlug/emmet-vim
check empty.
This commit is contained in:
1 parent
e1e79f3d25
commit
61a261ef89
3 files changed
+9
-3
No files matched your search
@@ -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