Skip to content

Commit

Permalink
Fixes issue on displaying search results
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Mar 28, 2015
1 parent 6ff9f7c commit 4f12a1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ class ClassFilePage
def fragment = uri.fragment
def query = uri.query

textArea.highlighter.clearMarkAllHighlights()

if (fragment) {
int index = fragment.indexOf('?')

Expand Down Expand Up @@ -384,7 +386,6 @@ class ClassFilePage

if (ranges) {
textArea.markAllHighlightColor = searchHighlightColor
textArea.highlighter.clearMarkAllHighlights()
textArea.markAll(ranges)
setCaretPositionAndCenter(ranges.sort().get(0))
}
Expand Down

0 comments on commit 4f12a1b

Please sign in to comment.