From ed404335a35853d9250c703a3f28acde63b9b20d Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Wed, 26 Mar 2014 11:23:55 +1100 Subject: Refactor range deletion into a method on ScintillaView. For removeMarkedText, use range deletion instead of setting the selection and inserting an empty string as this has fewer side effects and should avoid crashes when an autocompletion list is active. --- cocoa/ScintillaView.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cocoa/ScintillaView.h') diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h index 51d60e9d5..b9b36201f 100644 --- a/cocoa/ScintillaView.h +++ b/cocoa/ScintillaView.h @@ -146,6 +146,8 @@ extern NSString *const SCIUpdateUINotification; - (NSString*) selectedString; +- (void) deleteRange: (NSRange) range; + - (void)setFontName: (NSString*) font size: (int) size bold: (BOOL) bold -- cgit v1.2.3