Revision: 16039
http://sourceforge.net/p/skim-app/code/16039
Author: hofman
Date: 2026-02-06 17:12:28 +0000 (Fri, 06 Feb 2026)
Log Message:
-----------
pass page hint to sync parser
Modified Paths:
--------------
trunk/SKPDFSynchronizer.m
trunk/SKSyncTeXParser.m
Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m 2026-02-05 23:07:41 UTC (rev 16038)
+++ trunk/SKPDFSynchronizer.m 2026-02-06 17:12:28 UTC (rev 16039)
@@ -249,7 +249,7 @@
if (sourceFile == nil)
sourceFile = fixedFile;
}
- success = [parser findPage:&foundPageIndex location:&foundPoint
forLine:line inFile:sourceFile fromPageIndex:0];
+ success = [parser findPage:&foundPageIndex location:&foundPoint
forLine:line inFile:sourceFile fromPageIndex:pageIndex];
if (success && atomic_load(&shouldKeepRunning)) {
if (isPdfsync)
Modified: trunk/SKSyncTeXParser.m
===================================================================
--- trunk/SKSyncTeXParser.m 2026-02-05 23:07:41 UTC (rev 16038)
+++ trunk/SKSyncTeXParser.m 2026-02-06 17:12:28 UTC (rev 16039)
@@ -94,7 +94,7 @@
- (BOOL)findPage:(NSUInteger *)pageIndexPtr location:(NSPoint *)pointPtr
forLine:(NSInteger)line inFile:(NSString *)file
fromPageIndex:(NSUInteger)pageIndex {
BOOL rv = NO;
const char *filename = [file UTF8String];
- if (synctex_display_query(scanner, filename, (int)line + 1, 0, pageIndex)
> 0) {
+ if (synctex_display_query(scanner, filename, (int)line + 1, 0, pageIndex +
1) > 0) {
synctex_node_p node = synctex_scanner_next_result(scanner);
if (node) {
NSUInteger page = synctex_node_page(node);
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