Revision: 12230
          http://sourceforge.net/p/skim-app/code/12230
Author:   hofman
Date:     2021-03-29 22:59:04 +0000 (Mon, 29 Mar 2021)
Log Message:
-----------
Ignore spotlight search text when it is one character long, Finder tends to 
pass a single trash character

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

Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m        2021-03-29 21:24:21 UTC (rev 12229)
+++ trunk/SKDocumentController.m        2021-03-29 22:59:04 UTC (rev 12230)
@@ -556,7 +556,7 @@
             
             NSString *searchString = [[event 
descriptorForKeyword:keyAESearchText] stringValue];
             
-            if ([searchString length]) {
+            if ([searchString length] > 2) {
                 
                 if ([searchString length] > 2 && [searchString 
characterAtIndex:0] == '"' && [searchString characterAtIndex:[searchString 
length] - 1] == '"') {
                     //strip quotes

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to