Skip to content

Commit

Permalink
More strict same-line judgement on cmd+left
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Aug 19, 2014
1 parent fe67d4d commit 23aec6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MacDown/Code/Document/MPDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ - (BOOL)textViewShouldMoveToLeftEndOfLine:(NSTextView *)textView
NSRect currentRect =
[manager boundingRectForGlyphRange:NSMakeRange(cur, 1)
inTextContainer:container];
if (targetRect.origin.y > currentRect.origin.y)
if (targetRect.origin.y != currentRect.origin.y)
return YES;

textView.selectedRange = NSMakeRange(location, 0);
Expand Down

0 comments on commit 23aec6a

Please sign in to comment.