[latexila] SyncTeX: ignore the column
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] SyncTeX: ignore the column
- Date: Mon, 10 Sep 2012 03:43:00 +0000 (UTC)
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]