From 5e0c66b34dde488d55f1a8006a5a0fc25d11eced Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
Date: Tue, 10 Nov 2009 20:45:38 +0100
Subject: [PATCH 2/5] Re-add scroll into view, commented-out.

   * Modified     gedit/gedit-commands-file.c

This code was not there in/before my first patch, so I left it out
while resolving the merge conflicts.  I tested it and I do not know
why it is there, re-added it now as

    #if 0 // Works for me without this -- jcn
	 GeditView *view = gedit_tab_get_view (tab);
	 gedit_view_scroll_to_cursor (view);
    #endif

so that you may easily test and re-enable or remove it.
---
 gedit/gedit-commands-file.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 96b22af..a7b07f7 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -159,10 +159,13 @@ load_file_list (GeditWindow         *window,
 
 					if (line_pos > 0 || column_pos > 0)
 					{
-						GeditDocument *doc;
+						GeditDocument *doc = gedit_tab_get_document (tab);
 
-						doc = gedit_tab_get_document (tab);
 						gedit_document_goto_line_column (doc, line_pos, column_pos);
+#if 0 // Works for me without this -- jcn
+						GeditView *view = gedit_tab_get_view (tab);
+						gedit_view_scroll_to_cursor (view);
+#endif
 					}
 				}
 
-- 
1.6.3.3


