Skip to content

Commit

Permalink
fixes acejump#417
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Dec 19, 2022
1 parent c070b21 commit 99e0a50
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 3.8.10

- Fixes regression in 3.8.9 breaking cross-tab selection, [#417](https://github.com/acejump/AceJump/issues/417)

## 3.8.9

- Add ids to editor action handlers, [#410](https://github.com/acejump/AceJump/pull/410), thanks to [@AlexPl292](https://github.com/AlexPl292)
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ kotlin.jvmToolchain {
}

changelog {
version.set("3.8.9")
version.set("3.8.10")
path.set("${project.projectDir}/CHANGES.md")
header.set(provider { "[${project.version}] - ${date()}" })
itemPrefix.set("-")
Expand All @@ -83,4 +83,4 @@ intellij {
}

group = "org.acejump"
version = "3.8.9"
version = "3.8.10"
4 changes: 2 additions & 2 deletions src/main/kotlin/org/acejump/action/TagJumper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ internal class TagJumper(private val mode: JumpMode, private val searchProcessor
private fun ensureEditorFocused(editor: Editor) {
val project = editor.project ?: return
val fem = FileEditorManagerEx.getInstanceEx(project)
val window = fem.windows.firstOrNull { (it.getSelectedComposite(true)?.fileEditorManager?.selectedTextEditor) === editor }

val window = fem.windows.firstOrNull { (it.getSelectedComposite(false)?.selectedWithProvider?.fileEditor as? TextEditor)?.editor === editor }
if (window != null && window !== fem.currentWindow) {
fem.currentWindow = window
}
Expand Down

0 comments on commit 99e0a50

Please sign in to comment.