[gedit-plugins] Fixed undefined modifier for replace-all



commit 0bb9f23a0fc74794900bf392f6cbcfeead0b9b42
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue May 11 14:25:34 2010 +0200

    Fixed undefined modifier for replace-all

 plugins/commander/modules/find/finder.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/commander/modules/find/finder.py b/plugins/commander/modules/find/finder.py
index 2271e75..a04dd83 100644
--- a/plugins/commander/modules/find/finder.py
+++ b/plugins/commander/modules/find/finder.py
@@ -271,7 +271,7 @@ class Finder:
 				                       'end': buf.get_iter_at_mark(self.find_result.end)})
 
 				# If there is a selection, replace it with the replacement string
-				if not bounds.start.equal(bounds.end) and not (modifier & gtk.gdk.CONTROL_MASK):
+				if not bounds.start.equal(bounds.end) and (replaceall or not (modifier & gtk.gdk.CONTROL_MASK)):
 					text = bounds.start.get_text(bounds.end)
 					repl = self.get_replace(text)
 



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