Merge pull request #160 from eugene-p/master

lorem did not pick up count always defaulting to 30
This commit is contained in:
mattn
2013-10-17 17:26:45 -07:00

View File

@@ -1,5 +1,5 @@
function! emmet#lorem#en#expand(command)
let wcount = matchstr(a:command, '^\%(lorem\|lipsum\)\(\d*\)}$', '\1', '')
let wcount = matchstr(a:command, '\(\d*\)$')
let wcount = wcount > 0 ? wcount : 30
let common = ['lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipisicing', 'elit']