[anjuta/gnome-3-2] sourceview: Fix off-by-one line error introduced by last patch
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-3-2] sourceview: Fix off-by-one line error introduced by last patch
- Date: Thu, 20 Oct 2011 14:00:49 +0000 (UTC)
commit 6217534f0eb3bbfd04a1c2423a92cfa6284faa8a
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]