Skip to content

Commit

Permalink
Merge pull request #847 from Jugen/empty_line_highlighter
Browse files Browse the repository at this point in the history
Fixed an empty line not being highlighted
  • Loading branch information
Jugen authored Aug 26, 2019
2 parents bbe19c2 + 5faf383 commit db94cfa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,9 @@ public void setLineHighlighterOn( boolean show )
if ( b.getMinY() != caretPrevY && lineHighlighter != null )
{
int p = getCurrentParagraph();
lineHighlighter.selectRange( p, getCurrentLineStartInParargraph(), p, getCurrentLineEndInParargraph() );
int start = getCurrentLineStartInParargraph();
int end = getCurrentLineEndInParargraph() + 1; // +1 for empty lines
lineHighlighter.selectRange( p, start, p, end );
caretPrevY = b.getMinY();
}
};
Expand Down

0 comments on commit db94cfa

Please sign in to comment.