fix: only scroll docs if docs view is visible (#1011)

This commit is contained in:
William Boman
2022-05-25 03:32:11 +02:00
committed by GitHub
parent 6e1e386515
commit 033a817ced

View File

@@ -172,7 +172,7 @@ end)
---Scrolling documentation window if possible
cmp.scroll_docs = cmp.sync(function(delta)
if cmp.core.view:visible() then
if cmp.core.view.docs_view:visible() then
cmp.core.view:scroll_docs(delta)
return true
else