Fix "List as a String"-error (#193)
This commit is contained in:
parent
55c4214936
commit
a93a88a85a
@ -465,8 +465,12 @@ function! s:labels_parse_number(num_tree) " {{{1
|
||||
if len(a:num_tree) == 0
|
||||
return '-'
|
||||
elseif len(a:num_tree) == 1
|
||||
if type(a:num_tree) == type([])
|
||||
return s:labels_parse_number(a:num_tree[0])
|
||||
else
|
||||
let l:num = str2nr(a:num_tree[0])
|
||||
return l:num > 0 ? l:num : '-'
|
||||
endif
|
||||
else
|
||||
return s:labels_parse_number(a:num_tree[1])
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user