1
0
mirror of https://github.com/chylex/IntelliJ-AceJump.git synced 2025-04-09 17:15:43 +02:00
This commit is contained in:
breandan 2019-03-14 00:28:20 -04:00
parent d56877a82c
commit 986e78978f
2 changed files with 2 additions and 3 deletions
src/main/kotlin/org/acejump

View File

@ -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)

View File

@ -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)
}
/**