[meld] Don't auto-skip past the first chunk on startup
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Don't auto-skip past the first chunk on startup
- Date: Tue, 22 Jun 2010 22:36:06 +0000 (UTC)
commit d62d2d7fa2cdf6583ff98ef724504e0722a32795
Author: Kai Willadsen <kai willadsen gmail com>
Date: Tue Jun 22 10:00:23 2010 +1000
Don't auto-skip past the first chunk on startup
In comparisons where a chunk occured on the first line, the view skipped
to the end on startup, due to mismatch between the CursorDetails' line
and the actual insert point. This is a convenient one-line fix that
makes sure that they match up.
meld/filediff.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index b53437a..7b19aa7 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -800,6 +800,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.cursor.next = chunk
if self.cursor.next is None:
self.cursor.next = next
+ self.textbuffer[1].place_cursor(self.textbuffer[1].get_start_iter())
self.scheduler.add_task(lambda: self.next_diff(gtk.gdk.SCROLL_DOWN), True)
self.queue_draw()
self.scheduler.add_task(self._update_highlighting().next)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]