mirror of
https://github.com/chylex/IntelliJ-AceJump.git
synced 2025-04-09 17:15:43 +02:00
fixes #270
This commit is contained in:
parent
d56877a82c
commit
986e78978f
src/main/kotlin/org/acejump
@ -24,8 +24,7 @@ object Scroller {
|
||||
private var scrollY = 0
|
||||
|
||||
fun scroll(isNext: Boolean = true): Boolean {
|
||||
val position = if (isNext) findNextPosition()
|
||||
?: return false
|
||||
val position = if (isNext) findNextPosition() ?: return false
|
||||
else findPreviousPosition() ?: return false
|
||||
editor.scrollingModel.disableAnimation()
|
||||
editor.scrollingModel.scrollTo(position, CENTER)
|
||||
|
@ -120,8 +120,8 @@ object Tagger : Resettable {
|
||||
tagMap.entries.firstOrNull { it.solves(query) && it.value in viewBounds }
|
||||
?.run {
|
||||
logger.info("User selected tag: ${key.toUpperCase()}")
|
||||
Jumper.jumpTo(value)
|
||||
tagSelected = true
|
||||
Jumper.jumpTo(value)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user