Skip to content

Commit

Permalink
Refresh when unfolding on mouse down event
Browse files Browse the repository at this point in the history
This seems to be necessary when the document occupies less space than the visible document window.
  • Loading branch information
rdwampler authored and sorbits committed Oct 3, 2015
1 parent a23b522 commit 0547479
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Frameworks/OakTextView/src/OakTextView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3724,6 +3724,7 @@ - (void)mouseDown:(NSEvent*)anEvent

if(ng::range_t r = layout->folded_range_at_point([self convertPoint:[anEvent locationInWindow] fromView:nil]))
{
AUTO_REFRESH;
layout->unfold(r.min().index, r.max().index);
return;
}
Expand Down

0 comments on commit 0547479

Please sign in to comment.