Skip to content

Commit

Permalink
Merge pull request acejump#306 from AlexPl292/GreenLights
Browse files Browse the repository at this point in the history
Remove green flashes after performing regex search
  • Loading branch information
breandan authored Oct 14, 2019
2 parents 16f7669 + 2908be2 commit 01e7ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/acejump/view/Marker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Marker : CustomHighlighterRenderer {
queryLength = query.length - if(endsWith) 1 else 0
trueOffset = query.length - 1

searchWidth = queryLength * fontWidth
searchWidth = if (regex) 0 else queryLength * fontWidth

var i = 1
while (i < query.length && index + i < text.length &&
Expand Down

0 comments on commit 01e7ce0

Please sign in to comment.