mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-11 04:51:52 +08:00
fixed endless loop in zen_imageSize.
This commit is contained in:
@@ -1218,6 +1218,7 @@ function! s:zen_imageSize()
|
|||||||
let match = matchstr(line, mx)
|
let match = matchstr(line, mx)
|
||||||
if len(match) == 0
|
if len(match) == 0
|
||||||
let c = -1
|
let c = -1
|
||||||
|
break
|
||||||
endif
|
endif
|
||||||
let pos = stridx(line, match)
|
let pos = stridx(line, match)
|
||||||
let c += pos
|
let c += pos
|
||||||
@@ -1227,7 +1228,7 @@ function! s:zen_imageSize()
|
|||||||
let line = line[pos + len(match):]
|
let line = line[pos + len(match):]
|
||||||
let c += len(match)
|
let c += len(match)
|
||||||
endwhile
|
endwhile
|
||||||
if pos == -1 || len(line) == 0
|
if c == -1 || len(line) == 0
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let current = s:zen_parseTag(match)
|
let current = s:zen_parseTag(match)
|
||||||
|
|||||||
Reference in New Issue
Block a user