Odd Issue
Posted: Mon Dec 15, 2014 5:33 pm
I've noticed an odd issue with the latest TextPad (maybe be in older versions, but I've never noticed it before). I don't know if it's by error or design. If I perform a regular expression on a selected set of lines, and if the line following the selection is empty [i.e., contains just a end-of-line character(s)], the expression will also be performed on that line. If the following lines is NOT empty, the expression will not be performed.
For example: If I use the find expression "^.*$" with the replacement expression "//$&" to comment-out the selected lines for C or C++, it will also comment-out the line following the selection, if and only if, it is blank.
It's not a big deal, but an oddity.
DrX
For example: If I use the find expression "^.*$" with the replacement expression "//$&" to comment-out the selected lines for C or C++, it will also comment-out the line following the selection, if and only if, it is blank.
It's not a big deal, but an oddity.
DrX