Skip to content

Commit

Permalink
fix: Make not to skip floatwin if it is focusable
Browse files Browse the repository at this point in the history
  • Loading branch information
4513ECHO committed Sep 2, 2023
1 parent b1e91b4 commit 3d10b50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/lightline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ function! lightline#update() abort
endif
endfunction

if exists('*win_gettype')
if exists('*nvim_win_get_config')
function! s:skip() abort
return !nvim_win_get_config(0).focusable
endfunction
elseif exists('*win_gettype')
function! s:skip() abort " Vim 8.2.0257 (00f3b4e007), 8.2.0991 (0fe937fd86), 8.2.0996 (40a019f157)
return win_gettype() ==# 'popup' || win_gettype() ==# 'autocmd'
endfunction
Expand Down

0 comments on commit 3d10b50

Please sign in to comment.