aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-03-26 11:23:55 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2014-03-26 11:23:55 +1100
commitc839f48dac5f79e8beed661bb8742a778b4bbaf3 (patch)
tree0933c005adf847954470935ebfd6e6a989c15ef2 /cocoa/ScintillaView.h
parent45789ef46288d869ae1c1047b5f87c89c8a06d3b (diff)
downloadscintilla-mirror-c839f48dac5f79e8beed661bb8742a778b4bbaf3.tar.gz
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.
Diffstat (limited to 'cocoa/ScintillaView.h')
-rw-r--r--cocoa/ScintillaView.h2
1 files changed, 2 insertions, 0 deletions
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