Revision: 16266
          http://sourceforge.net/p/skim-app/code/16266
Author:   hofman
Date:     2026-05-10 08:22:56 +0000 (Sun, 10 May 2026)
Log Message:
-----------
move search results in opposite direction

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-05-09 22:22:50 UTC (rev 16265)
+++ trunk/SKMainWindowController.m      2026-05-10 08:22:56 UTC (rev 16266)
@@ -1968,9 +1968,9 @@
             searchResultIndex = [findResults count] - 1;
     
         PDFSelection *currentSel = [findResults 
objectAtIndex:searchResultIndex];
+        PDFPage *page = [currentSel safeFirstPage];
         
-        if ([currentSel hasCharacters]) {
-            PDFPage *page = [currentSel safeFirstPage];
+        if (page) {
             if ([self interactionMode] == SKPresentationMode) {
                 [presentationView setPage:page];
             } else {

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2026-05-09 22:22:50 UTC (rev 16265)
+++ trunk/SKMainWindowController_UI.m   2026-05-10 08:22:56 UTC (rev 16266)
@@ -771,7 +771,7 @@
 - (void)tableViewMoveLeft:(NSTableView *)tv {
     if (([tv isEqual:leftSideController.findTableView] || [tv 
isEqual:leftSideController.groupedFindTableView])) {
         if ([tv numberOfSelectedRows]) {
-            ++searchResultIndex;
+            --searchResultIndex;
             [self updateSearchResultHighlights];
         }
     }
@@ -780,7 +780,7 @@
 - (void)tableViewMoveRight:(NSTableView *)tv {
     if (([tv isEqual:leftSideController.findTableView] || [tv 
isEqual:leftSideController.groupedFindTableView])) {
         if ([tv numberOfSelectedRows]) {
-            --searchResultIndex;
+            ++searchResultIndex;
             [self updateSearchResultHighlights];
         }
     }

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