mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
layout: Fix bol_as_eol for case where range length is 0
bol_as_eol was meant for non-empty ranges, but the only place where empty ranges were attempted with bol_as_eol was for Zoom tracking, and it seems like I did not re-test Zoom after making the bol_as_eol commit. Fixes textmate/bugs#4
This commit is contained in:
committed by
Allan Odgaard
parent
754f1a1a4f
commit
e08a40a507
@@ -307,7 +307,7 @@ namespace ng
|
||||
ASSERT_LE(first, last);
|
||||
|
||||
auto r1 = rect_at_index(first);
|
||||
auto r2 = rect_at_index(last, bol_as_eol);
|
||||
auto r2 = rect_at_index(last, bol_as_eol && (first != last));
|
||||
auto res = CGRectZero;
|
||||
|
||||
if(CGRectGetMinY(r1) == CGRectGetMinY(r2) && CGRectGetHeight(r1) == CGRectGetHeight(r2))
|
||||
|
||||
Reference in New Issue
Block a user