Hello,

I reported https://bugzilla.gnome.org/show_bug.cgi?id=758804 today. After reporting I had some spare time and looked into the source code.

I came up with a fix which seems to work.

See the attachment for a patch.

Since I am not sure what the preferred way of accepting patches is I will also attach it to the bugzilla entry.

Regards,
Erik
>From 941ef66e9bb96af409c058b5576c66d16f800ed9 Mon Sep 17 00:00:00 2001
From: Erik Schilling <[email protected]>
Date: Sun, 29 Nov 2015 16:56:18 +0100
Subject: [PATCH] Fixed the default lambda for the textfilter

This was apparently broken in cef0f70c3f77c3a83c8b3807671ef76e292a0768
when the method which normally gets passed in was extended to 4
parameters.
---
 meld/meldbuffer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meld/meldbuffer.py b/meld/meldbuffer.py
index a64685a..f40d1c2 100644
--- a/meld/meldbuffer.py
+++ b/meld/meldbuffer.py
@@ -211,7 +211,7 @@ class BufferLines(object):
         if textfilter is not None:
             self.textfilter = textfilter
         else:
-            self.textfilter = lambda x: x
+            self.textfilter = lambda x, buf, start_iter, end_iter: x
 
     def __getitem__(self, key):
         if isinstance(key, slice):
-- 
2.5.0

_______________________________________________
meld-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/meld-list

Reply via email to