Skip to content

Commit

Permalink
don't make tab/indent behavior dependent on textview layout events
Browse files Browse the repository at this point in the history
  • Loading branch information
scrod committed Mar 31, 2011
1 parent b794447 commit cce76f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions LinkingEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,7 @@ - (void)moveToBeginningOfLine:(id)sender {
- (void)insertTab:(id)sender {
//check prefs for tab behavior

BOOL wasAutomatic = NO;
[self selectedRangeWasAutomatic:&wasAutomatic];
BOOL wasAutomatic = NSEqualRanges(lastAutomaticallySelectedRange, [self selectedRange]);

if ([prefsController tabKeyIndents] && (!wasAutomatic || ![[self string] length] || didChangeIntoAutomaticRange)) {
[self insertTabIgnoringFieldEditor:sender];
Expand Down

0 comments on commit cce76f6

Please sign in to comment.