AndrewRadev/sideways.vim

More targets than List items

bstaint opened this issue · 2 comments

when sideways#parsing#Parse return []:

Error detected while processing function sideways#MoveLeft:
line    1:
E688: More targets than List items
line    2:
E121: Undefined variable: items
E116: Invalid arguments for function empty(items)
E15: Invalid expression: empty(items)
...

sideways.vim\autoload\sideways\parsing.vim, line 38:

    return [definition []]

instead.

Good catch, thank you very much for the backtrace and the suggestion -- I've pushed a fix. Could you pull from master and confirm it works right?

Yes, It's no problem. thx.