1
0
mirror of https://github.com/chylex/IntelliJ-Keyboard-Master.git synced 2025-04-20 20:15:43 +02:00

Disable wrapping around when going down a page in code completion popup

This commit is contained in:
chylex 2021-10-14 02:54:55 +02:00
parent a496b253ba
commit f6f65557e2
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -36,7 +36,7 @@ class CodeCompletionPopupKeyHandler(originalHandler: TypedActionHandler?) : Type
if (shortcutItem == CodeCompletionPopupConfiguration.SHORTCUT_NEXT_PAGE) {
setPageOffset(lookup) {
val newTopIndex = offset + CodeCompletionPopupConfiguration.itemShortcutCount
if (newTopIndex >= it.size) 0 else newTopIndex
if (newTopIndex >= it.size) offset else newTopIndex
}
}
else if (shortcutItem == CodeCompletionPopupConfiguration.SHORTCUT_PREV_PAGE) {