From 23aec6afa48c24205b9fc6630d70dfff36db041a Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 19 Aug 2014 12:01:33 +0800 Subject: [PATCH] More strict same-line judgement on cmd+left --- MacDown/Code/Document/MPDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacDown/Code/Document/MPDocument.m b/MacDown/Code/Document/MPDocument.m index fcea214d..60fe67e0 100644 --- a/MacDown/Code/Document/MPDocument.m +++ b/MacDown/Code/Document/MPDocument.m @@ -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);