Skip to content

Commit

Permalink
Fixed an empty line not being highlighted
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurgen committed Aug 26, 2019
1 parent e90c3a9 commit 5faf383
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 5faf383

Please sign in to comment.