Bug: Deleted X lines after sort with removal can be low by 1

General questions about using TextPad

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

Post Reply
MikeF74
Posts: 2
Joined: Thu Jun 26, 2008 6:45 pm

Bug: Deleted X lines after sort with removal can be low by 1

Post by MikeF74 »

When sorting with the option to remove deleted lines, the "Deleted X Lines" status bar display doesn't necessarily show the number of duplicates removed. It all depends on whether or not there is a CRLF on the last line.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

I can confirm it, though I must admit I don't think I ever looked at the Deleted X Lines message.

It appears that TP inserts a CRLF on the last line before sorting and removing dups, and that inserted CRLF isn't being counted.
(2[Bb]|[^2].|.[^Bb])

That is the question.
Post Reply