Skip to content

Commit be27746

Browse files
authored
Fix bug in s:int() that only recognizes the first character (#273)
1 parent 7753ba9 commit be27746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/vsnip/snippet/parser.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let s:slash = s:token('/')
3737
let s:comma = s:token(',')
3838
let s:pipe = s:token('|')
3939
let s:varname = s:pattern('[_[:alpha:]]\w*')
40-
let s:int = s:map(s:pattern('\d\+'), { value -> str2nr(value[0]) })
40+
let s:int = s:map(s:pattern('\d\+'), { value -> str2nr(value) })
4141
let s:text = { stop, escape -> s:map(
4242
\ s:skip(stop, escape),
4343
\ { value -> {

0 commit comments

Comments
 (0)