1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:10:05 +08:00

Fix index checking

as `index(['1'], 1) == -1`, so change the first index to '1'.
This commit is contained in:
wsdjeg 2017-03-11 01:00:46 +08:00
parent c070505edf
commit df92a041dc

View File

@ -42,7 +42,7 @@ function! s:menu(items) abort
let saved_more = &more
set nomore
let items = s:parseItems(a:items)
let selected = 1
let selected = '1'
let exit = 0
let indent = repeat(' ', 7)
while !exit