Skip to content

Commit

Permalink
Fixed line selection off not updating (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen committed Jan 3, 2022
1 parent f35220f commit 25ebc97
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -44,4 +44,11 @@ public void selectCurrentLine()
int end = getArea().getAbsolutePosition( p, getArea().getCurrentLineEndInParargraph() );
super.selectRange( start, (end > start) ? end : start+1 ); // +1 for empty lines
}

@Override
public void deselect()
{
int startPos = getStartPosition();
super.selectRange( startPos, startPos );
}
}

0 comments on commit 25ebc97

Please sign in to comment.