From f91c1f4b6498892018685108da36fb60ed72ddab Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 4 Mar 2010 19:09:27 +0900 Subject: [PATCH] fixed endless loop in zen_imageSize. --- zencoding.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zencoding.vim b/zencoding.vim index 7226e35..9eaa251 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -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)