ap / vim-buftabline

Forget Vim tabs – now you can have buffer tabs
http://www.vim.org/scripts/script.php?script_id=5057
MIT License
791 stars 72 forks source link

:Explore command error #5

Closed fmount closed 9 years ago

fmount commented 9 years ago

When I start vim (without a specific argument file), if i run the Explore command on a [No Name] buffer, I got this error:

Error detected while processing function buftabline#render: line 104: E684: list index out of range: 0 Press ENTER or type command to continue Error detected while processing function buftabline#render: line 103: E116: Invalid arguments for function substitute(tabs[0].label, lpad, ' ', '') Press ENTER or type command to continue

ap commented 9 years ago

Thank you! I had noticed that one but not isolated the trigger condition, and the error seemed not to make sense in the circumstances where I encountered this. (I was launching Vim with some wildcard that matches both files and directories, so it seemed “obvious” that there should be something in the array. Unconscious assumptions…) Thank you for pinning it down.