mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Ensure backward compatibility with 'previewpopup' option
This commit is contained in:
@@ -25,7 +25,8 @@ let g:gitgutter_preview_win_location = get(g:, 'gitgutter_preview_win_location',
|
|||||||
if exists('*nvim_open_win')
|
if exists('*nvim_open_win')
|
||||||
let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', 1)
|
let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', 1)
|
||||||
else
|
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
|
endif
|
||||||
let g:gitgutter_enabled = get(g:, 'gitgutter_enabled', 1)
|
let g:gitgutter_enabled = get(g:, 'gitgutter_enabled', 1)
|
||||||
if exists('*sign_unplace')
|
if exists('*sign_unplace')
|
||||||
|
|||||||
Reference in New Issue
Block a user