Skip to content

Commit a7c7c77

Browse files
committed
Fix invalid condition
1 parent 2557981 commit a7c7c77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/vital/_fern/App/WindowLocator.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ let s:conditions = [
1616
\ { wi -> !getbufvar(wi.bufnr, '&previewwindow', 0) },
1717
\]
1818

19-
" Add condition to check if the window is floating
19+
" Add condition to make sure that the window is not floating
2020
if exists('*nvim_win_get_config')
21-
call add(s:conditions, { wi -> nvim_win_get_config(wi.winid).relative !=# '' })
21+
call add(s:conditions, { wi -> nvim_win_get_config(wi.winid).relative ==# '' })
2222
endif
2323

2424
function! s:score(winnr) abort

0 commit comments

Comments
 (0)