Find dialog bug?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Find dialog bug?

Post by jeffy »

Try this:

Type '\' (no quotes) into the find-dialog. Click regular expression. It's an invalid regex, because it's an unescaped escape character. Click find-next and you'll get an error.

Now, leave the slash there and close the dialog. Select some text (within a single line), and re-open the dialog. The selected text--I thought--should be put into the find-what field, and--I thought--the regex checkbox should be cleared.

But instead, it gives you a regex error, because the *SLASH* is a bad regex.

Is this a bug? Are other people seeing this?
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

can't reproduce. If selected text is within a single line, the find field is filled with the selected text.
If selected text crosses a line break, the find field is filled with the last (valid) find expression.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

Happens consistently with me. Including after a computer-restart.

:(

No one else?
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

What version of TP are you running?
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

7.0.8.

I just upgraded to 7.0.9 and it still happens.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

I don't recall a version 7.0.8

Can you do a Help, About to confirm that 7.0.9 is installed?

I know there were some RE issues with unmatched and/or invalid RE, but I believe those all have been fixed with 7.0.9

I am unable to reproduce the problem.

Win7 64 bit
TP 7.0.9
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

7.0.8 was privately given to me and some others who were experiencing a specific problem.

What I said is correct. It happened in 7.0.8, and is WAS happening in 7.0.9...consistently up until right now. I can't reproduce it at the moment, which is the first time that it's NOT happening. I'll try it again tomorrow...
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

Still happening after a computer restart, in 7.0.9.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

I'm wondering whether this could be an upgrade problem with 7.0.8 to 7.0.9

Not sure if this would work, but you might try installing 7.0.7, and then upgrading from 7.0.7 to 7.0.9
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

Honestly, I've not yet tried the uninstall-reinstall-upgrade as you suggested. However, I did find a related problem.

When you're outside of the find dialog and trigger the "RegexSet" command, then you open the find dialog; if there happens to be a bogus regex command in it, you get the modal regex-is-bad dialog.

In my opinion, this error message should never appear just because you opened the find dialog (with RE checked). Rather, the regex should only be analyzed when pressing the find-next button.

Please tell me I'm not the only one having this problem!
Post Reply