From 83a5661e683089e3dda8e7993d6127d44cd0affe Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 3 Sep 2008 02:16:56 +0000 Subject: [PATCH] new replace tech --HG-- branch : pmacs2 --- mode/replace.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mode/replace.py b/mode/replace.py index 261fb3c..c9434c9 100644 --- a/mode/replace.py +++ b/mode/replace.py @@ -105,8 +105,11 @@ def _set_prompt(m): p = 'Replace %r with %r [ynadq] (%d occurances)?' % (before, after, count) elif count == 1: 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: - raise Exception("this can't happen") + raise Exception("this REALLY can't happen") w.application.mini_prompt = p def _replace(m):