Skip to content

Commit

Permalink
Fix checking enough space for floating window
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 14, 2019
1 parent c824025 commit 3bf0254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/LanguageClient.vim
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ function! s:OpenHoverPreview(bufname, lines, filetype) abort

" Calculate anchor
" Prefer North, but if there is no space, fallback into South
if pos[1] + height <= &lines
let bottom_line = line('w0') + winheight() - 1
if pos[1] + height <= bottom_line
let vert = 'N'
let row = 1
else
Expand Down

0 comments on commit 3bf0254

Please sign in to comment.