[latexila] SyncTeX: ignore the column



commit 51ae803cec7dd0a0cfca7bd4672084e29b87cf12
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Mon Sep 10 05:41:55 2012 +0200

    SyncTeX: ignore the column
    
    It gives a better result. With the column, sometimes the text
    highlighted in evince is not the good one.

 src/synctex.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/synctex.vala b/src/synctex.vala
index 01b5f0b..380980c 100644
--- a/src/synctex.vala
+++ b/src/synctex.vala
@@ -139,7 +139,8 @@ public class Synctex : Object
         DocPosition pos = DocPosition ();
 
         pos.line = iter.get_line () + 1;
-        pos.column = iter.get_line_offset ();
+        // ignore the column, it gives a better result.
+        pos.column = -1;
 
         return pos;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]