Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sourceview_editor.py
diff options
context:
space:
mode:
authorroot <root@ghunt-desktop.(none)>2010-06-20 15:26:02 (GMT)
committer root <root@ghunt-desktop.(none)>2010-06-20 15:26:02 (GMT)
commit2201eeafa41382e5b1c19b5acbc8dee74c904a4b (patch)
treeb26f84e237ab3c58e10f308e045817146f53538f /sourceview_editor.py
parent5f4860099ae80a996e2e4dee85c72c11e170fc8e (diff)
edit replace fixed, fixes to -from_home-, dreload efforts, no -.pyo's
Diffstat (limited to 'sourceview_editor.py')
-rw-r--r--sourceview_editor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sourceview_editor.py b/sourceview_editor.py
index 4ab7a6e..3086229 100644
--- a/sourceview_editor.py
+++ b/sourceview_editor.py
@@ -520,7 +520,7 @@ class GtkSourceview2Page(SearchablePage):
self.text_buffer.can_undo():
self.activity.save_cb(None)
return
- if not new_fn and (not self.text_buffer.can_undo() or self.activity.abandon_changes):
+ if not new_file and (not self.text_buffer.can_undo() or self.activity.abandon_changes):
if not self.text_buffer.can_undo():
_logger.debug('no changes for %s'%os.path.basename(self.fullPath))
return #only save if there's something to save
@@ -642,7 +642,7 @@ class GtkSourceview2Page(SearchablePage):
return result
else: #replace, the &find part handled by caller
try:
- start,end = self.text_buffer.get_selection_bounds()
+ (start,end) = self.text_buffer.get_selection_bounds()
except TypeError:
return False
match = self._match(ftext,