Skip to content

Commit 465062d

Browse files
committed
Fix an exception when changing the tab indentation while the Bundle Editor is open (fixes #2246)
1 parent 59a344d commit 465062d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/SPBundleCommandTextView.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,13 @@ - (void)boundsDidChangeNotification:(NSNotification *)notification
816816
[commandScrollView display];
817817
}
818818

819+
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
820+
{
821+
if([keyPath isEqualToString:SPCustomQueryEditorTabStopWidth]) {
822+
[self setTabStops];
823+
}
824+
}
825+
819826
#pragma mark -
820827

821828
// Store the font in the prefs for selected delegates only

0 commit comments

Comments
 (0)