aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-26 16:16:51 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-26 16:16:51 +0000
commit807dc9075f46a0afeb48acbb40b19e1e2f6a0fd9 (patch)
tree8bb866592381d47d671b0313589f01efb6709dc3 /Source/CMTextView.m
parenta832db6dd09ca68207cbe28697fbf9107afe2ae4 (diff)
downloadsequelpro-807dc9075f46a0afeb48acbb40b19e1e2f6a0fd9.tar.gz
sequelpro-807dc9075f46a0afeb48acbb40b19e1e2f6a0fd9.tar.bz2
sequelpro-807dc9075f46a0afeb48acbb40b19e1e2f6a0fd9.zip
• query favorite snippet session
- ⇧⇥ on the first snippet won't end the snippet session
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 7787f41e..fe1af726 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -1183,7 +1183,9 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
currentSnippetIndex--;
if(currentSnippetIndex < 0) {
- currentSnippetIndex++;
+ currentSnippetIndex = 0;
+ while(snippetControlArray[currentSnippetIndex][0] == -1 && currentSnippetIndex < 20)
+ currentSnippetIndex++;
NSBeep();
}