Is this a Search and Replace bug?

General questions about using TextPad

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

Post Reply
mdrain
Posts: 2
Joined: Thu Jul 17, 2003 4:47 pm

Is this a Search and Replace bug?

Post by mdrain »

I've found what looks like a bug with TextPad 4.7, but it seems too trivial. Below is a list of numbers that are more than a couple of screens long. When I'm viewing the top of the list and search for \n and replace all with "," (without the quotes) using regular expressions, everything works as you'd expect and all of the numbers are combined into one line.

However, if I scroll down past the first screen of numbers and do the same search and replace, all text is deleted. When I paste, the search-and-replaced text is tacked on to the end of what I'd previously copied to the clipboard. If I open or switch to another TextPad document, the text re-appears in the original window.

Can anyone reproduce this behavior? Is this a bug or just another quirk of Windows 2000? Thanks.

83
88
92
93
101
110
160
165
172
173
182
192
243
261
273
289
290
297
301
303
307
360
367
383
393
430
480
543
549
559
577
587
589
647
656
814
850
948
994
1003
1028
1066
1070
1091
1140
1155
1163
1182
1188
1189
1194
1206
1214
1238
1239
1266
1428
1429
1430
1431
1432
1434
1436
1464
1492
1511
1516
1525
1579
1583
1593
1604
1638
1644
1662
1711
1712
1735
1736
1782
1811
1836
1843
1852
1895
1930
1934
1954
1992
2251
2252
2331
2404
2519
2603
2616
2729
2877
2971
3025
3048
3114
5064
5106
5165
5166
5212
5238
5338
5431
5481
5520
5562
5576
5584
11821
17301
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

However, if I scroll down past the first screen of numbers and do the same search and replace, all text is deleted. When I paste, the search-and-replaced text is tacked on to the end of what I'd previously copied to the clipboard. If I open or switch to another TextPad document, the text re-appears in the original window.
I just copied your list of numbers in an empty file and tried to reproduce your problem but couldn't get it.
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

Yes. I get the same problem, but only when word-wrap is selected.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Ok, can almost reproduce it with Word-wrap on.

But a simple cursor movement is enough to re-display the text.
Post Reply