diff src/layout.c @ 1503:331e2d60d447

improved next/prev operation on sidecar files all operations with list index seem to be broken but IMHO this fix is sufficient for 1.0. Then it definitely needs a better interface.
author nadvornik
date Tue, 31 Mar 2009 21:33:54 +0000
parents dac747d99394
children d352a44545a6
line wrap: on
line diff
--- a/src/layout.c	Tue Mar 31 20:57:31 2009 +0000
+++ b/src/layout.c	Tue Mar 31 21:33:54 2009 +0000
@@ -975,7 +975,7 @@
 {
 	if (!layout_valid(&lw) || !fd) return -1;
 
-	if (lw->vf) return vf_index_by_path(lw->vf, fd->path);
+	if (lw->vf) return vf_index_by_fd(lw->vf, fd);
 
 	return -1;
 }