Skip to content

Commit

Permalink
Ensure backward compatibility with 'previewpopup' option
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Mar 18, 2021
1 parent f2a825f commit 7224d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ let g:gitgutter_preview_win_location = get(g:, 'gitgutter_preview_win_location',
if exists('*nvim_open_win')
let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', 1)
else
let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', !empty(&previewpopup))
let default = exists('&previewpopup') ? !empty(&previewpopup) : 0
let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', default)
endif
let g:gitgutter_enabled = get(g:, 'gitgutter_enabled', 1)
if exists('*sign_unplace')
Expand Down

0 comments on commit 7224d1d

Please sign in to comment.