mirror of
https://github.com/chylex/IntelliJ-AceJump.git
synced 2025-04-09 17:15:43 +02:00
only check for on-screen matches
This commit is contained in:
parent
431f58b688
commit
55e3c9c076
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.1-20170707032407+0000-all.zip
|
||||
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.1-20170712173431+0000-all.zip
|
||||
|
@ -93,13 +93,14 @@ object Finder {
|
||||
|
||||
private fun collectJumpLocations(): Collection<Marker> {
|
||||
unseen2grams = LinkedHashSet(allBigrams())
|
||||
|
||||
textMatches = findMatchingSites().toList()
|
||||
|
||||
if (!applyTagsFully && textMatches.size > settings.allowedChars.size)
|
||||
val matchesInView = textMatches.filter { it in editor.getView() }
|
||||
|
||||
if (!applyTagsFully && matchesInView.size > settings.allowedChars.size)
|
||||
return textMatches.map { Marker(query, null, it) }
|
||||
|
||||
digraphs = makeMap(editorText, textMatches.filter { it in editor.getView() })
|
||||
digraphs = makeMap(editorText, matchesInView)
|
||||
|
||||
return mapDigraphs(digraphs)
|
||||
.let { compact(it) }
|
||||
|
Loading…
Reference in New Issue
Block a user