mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
win_getid() was introduced in Vim 7.4.1557. The code uses it to remember the id of the preview window. In newer Vims or Neovim this could be a floating window but pre-7.4.1557 it can only be an ordinary preview window. And in that case we only need the preview window's buffer number. This commit uses the buffer number when win_getid() isn't available. Fixes #683.