Permalink
Browse files

Fixed bug where jumping to an empty indented line inside of an expand…

…ed tag placed cursor at second space instead of at the end of the line
  • Loading branch information...
1 parent e41ec85 commit a91de874db679034dfd538899c2a9a8310400146 @mattbradley mattbradley committed May 31, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 vim/ftplugin/html/sparkup.vim
@@ -68,8 +68,8 @@ function! s:Sparkup()
endfunction
function! s:SparkupNext()
- " 1: empty tag, 2: empty attribute, 3: empty line
- let n = search('><\/\|\(""\)\|^\s*$', 'Wp')
+ " search returns (2) for empty attribute, (3) for empty line
+ let n = search('><\/\|\(""\)\|\(^\s*$\)', 'Wp')
if n == 3
startinsert!
else

0 comments on commit a91de87

Please sign in to comment.