new replace tech

--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-09-03 02:16:56 +00:00
parent b346d64d86
commit 83a5661e68
1 changed files with 4 additions and 1 deletions

View File

@ -105,8 +105,11 @@ def _set_prompt(m):
p = 'Replace %r with %r [ynadq] (%d occurances)?' % (before, after, count) p = 'Replace %r with %r [ynadq] (%d occurances)?' % (before, after, count)
elif count == 1: elif count == 1:
p = 'Replace %r with %r [ynadq] (1 occurance)?' % (before, after) p = 'Replace %r with %r [ynadq] (1 occurance)?' % (before, after)
elif count == 0:
p = 'Replace %r with %r [ynadq] (0 occurances)?' % (before, after)
#raise Exception("this can't happen")
else: else:
raise Exception("this can't happen") raise Exception("this REALLY can't happen")
w.application.mini_prompt = p w.application.mini_prompt = p
def _replace(m): def _replace(m):