mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
When opening vim with multiple files, e.g. via `vim -o file1 file2`, Vim fires a `BufEnter` event for each file. However the effective buffer number (`<abuf>`) is always 1, instead of being each buffer's number in turn, so we end up processing the first buffer n times instead of each of n buffers once. This commit is a brute force workaround to ensure all buffers are processed if there is more than one. Closes #428.