ap / vim-buftabline

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

Crash with g:buftabline_show = 1 #76

Open 0xDP opened 3 years ago

0xDP commented 3 years ago

Hi,

With g:buftabline_show = 1 vim crashes when I try to edit a file already opened in another vim.

Steps to reproduce:

Set g:buftabline_show = 1, e.g. put it in ~/.vim/after/plugin/buftabline.vim:

% cat ~/.vim/after/plugin/buftabline.vim
let g:buftabline_show = 1

Start vim and open one file for editing, e.g. vimrc

% vim -c ':e ~/.vim/vimrc'

Open a second vim with the same file:

% vim -c ':e ~/.vim/vimrc'

Error E325 is raised and you get the following Prompt:

[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort: 

with 'q' or 'a' vim crashes.

% vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 17 2020 07:41:25)
macOS version
Included patches: 1-1701
% head -n 4 ~/.vim/plugin/buftabline.vim 
" Vim global plugin for rendering the buffer list in the tabline
" Licence:     The MIT License (MIT)
" Commit:      7a09c0407ed4675e442efe830e985b84c1d106c8
" {{{ Copyright (c) 2015 Aristotle Pagaltzis <pagaltzis@gmx.de>

Regards, Dennis

ap commented 3 years ago

Bizarre. I hope this isn’t as tricky to track down as it sounds like it could be.