[anjuta] sourceview: Fix off-by-one line error introduced by last patch



commit 009d4a1c8e4db13041222590cbb950730dabbc29
Author: Johannes Schmid <jhs gnome org>
Date:   Thu Oct 20 15:59:51 2011 +0200

    sourceview: Fix off-by-one line error introduced by last patch

 plugins/sourceview/sourceview.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/sourceview/sourceview.c b/plugins/sourceview/sourceview.c
index 968c6b2..6582287 100644
--- a/plugins/sourceview/sourceview.c
+++ b/plugins/sourceview/sourceview.c
@@ -510,7 +510,8 @@ on_reload_dialog_response (GtkWidget *message_area, gint res, Sourceview *sv)
 		GFile* file = sourceview_io_get_file (sv->priv->io);
 
 		/* Save marks and position */
-		sv->priv->goto_line = ianjuta_editor_get_lineno (IANJUTA_EDITOR(sv), NULL);
+		sv->priv->goto_line = 
+			LOCATION_TO_LINE(ianjuta_editor_get_lineno (IANJUTA_EDITOR(sv), NULL));
 		sourceview_reload_save_markers (sv);
 
 		ianjuta_file_open(IANJUTA_FILE(sv),



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