fixed endless loop in zen_imageSize.

This commit is contained in:
mattn
2010-03-04 19:09:27 +09:00
parent 60a8850e7c
commit f91c1f4b64

View File

@@ -1218,6 +1218,7 @@ function! s:zen_imageSize()
let match = matchstr(line, mx)
if len(match) == 0
let c = -1
break
endif
let pos = stridx(line, match)
let c += pos
@@ -1227,7 +1228,7 @@ function! s:zen_imageSize()
let line = line[pos + len(match):]
let c += len(match)
endwhile
if pos == -1 || len(line) == 0
if c == -1 || len(line) == 0
return
endif
let current = s:zen_parseTag(match)