lorem did not pick up count always defaulting to 30

This commit is contained in:
Yauheni(Eugene) Patsiomkin
2013-10-17 15:41:42 -06:00
parent 6baf3c1210
commit c78a2ff435

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']