Revision: 3007
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3007&view=rev
Author:   hofman
Date:     2007-10-02 04:10:18 -0700 (Tue, 02 Oct 2007)

Log Message:
-----------
Don't search for an empty string.

Modified Paths:
--------------
    trunk/SKFindController.m

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2007-10-01 18:41:00 UTC (rev 3006)
+++ trunk/SKFindController.m    2007-10-02 11:10:18 UTC (rev 3007)
@@ -137,8 +137,10 @@
 
 - (IBAction)findNext:(id)sender {
     [self commitEditing];
-    [[self target] findString:findString options:[self findOptions] & 
~NSBackwardsSearch];
-    [self updateFindPboard];
+    if ([findString length]) {
+        [[self target] findString:findString options:[self findOptions] & 
~NSBackwardsSearch];
+        [self updateFindPboard];
+    }
 }
 
 - (IBAction)findNextAndOrderOutFindPanel:(id)sender {
@@ -148,8 +150,10 @@
 
 - (IBAction)findPrevious:(id)sender {
     [self commitEditing];
-    [[self target] findString:findString options:[self findOptions] | 
NSBackwardsSearch];
-    [self updateFindPboard];
+    if ([findString length]) {
+        [[self target] findString:findString options:[self findOptions] | 
NSBackwardsSearch];
+        [self updateFindPboard];
+    }
 }
 
 - (IBAction)pickFindString:(id)sender {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to