From 807dc9075f46a0afeb48acbb40b19e1e2f6a0fd9 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 26 Jan 2010 16:16:51 +0000 Subject: =?UTF-8?q?=E2=80=A2=20query=20favorite=20snippet=20session=20-=20?= =?UTF-8?q?=E2=87=A7=E2=87=A5=20on=20the=20first=20snippet=20won't=20end?= =?UTF-8?q?=20the=20snippet=20session?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMTextView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source') 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(); } -- cgit v1.2.3