[meld] Fixed the default lambda for the textfilter



commit 26daba5f41289b4b057aa07359f6c1b122f78b22
Author: Erik Schilling <ablu erikschilling gmail com>
Date:   Sun Nov 29 16:56:18 2015 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
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):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]