Subject: Fix hangup when comparing some files Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/meld/+bug/774265 Origin: http://git.gnome.org/browse/meld/commit/?id=0e7cc5202895acbe5c23ca964e2962ea2d3cec2a Applied-Upstream: 1.5.1 Index: meld/meld/filediff.py =================================================================== --- meld.orig/meld/filediff.py 2011-05-04 22:57:18.953377056 +0200 +++ meld/meld/filediff.py 2011-05-04 22:57:22.683377055 +0200 @@ -115,6 +115,8 @@ return lines def __getitem__(self, i): + if i > len(self): + raise IndexError line_start = get_iter_at_line_or_eof(self.buf, i) line_end = line_start.copy() if not line_end.ends_line():