mirror of
https://github.com/chylex/IntelliJ-Keyboard-Master.git
synced 2024-11-25 01:42:47 +01:00
Compare commits
No commits in common. "f3a36850846f39d09477afd7f791eb9866744a79" and "723b8af9392af050f74aa6c579fcbc0e2f31b0d9" have entirely different histories.
f3a3685084
...
723b8af939
@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "com.chylex.intellij.keyboardmaster"
|
||||
version = "0.5.8"
|
||||
version = "0.5.7"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
@ -70,20 +70,15 @@ internal object VimTreeNavigation {
|
||||
val path = tree.selectionPath ?: return
|
||||
|
||||
if (tree.isExpanded(path)) {
|
||||
collapseAndScroll(tree, path)
|
||||
tree.collapsePath(path)
|
||||
}
|
||||
else {
|
||||
val parentPath = path.parentPath
|
||||
if (parentPath.parentPath != null || tree.isRootVisible) {
|
||||
collapseAndScroll(tree, parentPath)
|
||||
tree.collapsePath(parentPath)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun collapseAndScroll(tree: JTree, path: TreePath) {
|
||||
tree.collapsePath(path)
|
||||
tree.scrollRowToVisible(tree.getRowForPath(path))
|
||||
}
|
||||
}
|
||||
|
||||
private data object ExpandTreeNodeChildrenToNextLevel : ActionNode<VimNavigationDispatcher<JTree>> {
|
||||
|
Loading…
Reference in New Issue
Block a user