From b18d8ce9ab96771f0a34b6ff9734bfea0ae1e31c Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 30 May 2012 09:05:46 +0900 Subject: [PATCH] fix finding tokens. --- autoload/zencoding/html.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/zencoding/html.vim b/autoload/zencoding/html.vim index 1d37237..5bed6c1 100644 --- a/autoload/zencoding/html.vim +++ b/autoload/zencoding/html.vim @@ -15,7 +15,7 @@ function! zencoding#html#findTokens(str) endif if token =~ '^\s' let token = matchstr(token, '^\s*\zs.*') - let last_pos = stridx(str, token) + let last_pos = stridx(str, token, pos) endif let pos = stridx(str, token, pos) + len(token) endwhile