aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-29 14:22:46 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-29 14:22:46 +0000
commit7591371032bbb7956b71ee5d70c0c3139872e3dd (patch)
tree9367852ee7b90852eb23f753bc474c6c9e2763e9 /Source/CMTextView.m
parenta0f3e12600411888242efd76959a124de74ee630 (diff)
downloadsequelpro-7591371032bbb7956b71ee5d70c0c3139872e3dd.tar.gz
sequelpro-7591371032bbb7956b71ee5d70c0c3139872e3dd.tar.bz2
sequelpro-7591371032bbb7956b71ee5d70c0c3139872e3dd.zip
• further tiny improvements to avoid exceptional cases while highlighting the erroneous query
- added check for near message length - make an intersection with the buffer range before selecting • text macro - each selection of a snippet breaks the undo buffer - note: undo behaviour while text macro session is active needs to be solved ⇢ work in progress
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 886df5a6..2bc01fcd 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -922,6 +922,9 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
&& currentSnippetIndex <= snippetControlMax
)
{
+
+ [self breakUndoCoalescing];
+
// Place the caret at the end of the query favorite snippet
// and finish snippet editing
if(currentSnippetIndex == snippetControlMax) {