Replace single char in selected text misses some replacements.  There is an
anomaly in the behavior of Replace on this higlighted section of text:  

 1··if ( printed == 0) { # process R rank
 2··
 3····sizeoftickR = sizeof( tickR ) # DESIGN? needed?
 4····printf( Preprocess "tickR[1--%s]: ", sizeoftickR ) # DEBUG
 5····for ( i=1; i<=sizeoftickR; i++ ) {
 6······printf( "%s:%s|", tickR[i], i ) # DEBUG
 7
 8····# MEAT: R, L, B are merged and converted to ABC
 9····
10····
11····
12····}
13····printf( "ABC from tickR[1--%s]: ", sizeoftickR ) # DEBUG
14··}

Note: the line numbers are not part of the text but provided for convenient
reference to the lines.  Indenting spaces are represented by "·" here because
this braindead forum editor mucks up indentation whether in "code" or not.  They
are spaces in the original text.  

The goal is to replace every occurrence of "R" with "L" in the code and in some
(but not all) of the comments.  

The Replace (Ctrl-H) options selected are:  Find: R; Replace: L; Case Sensitive;
Prompt Each Replace; Forward; Selected Text.

Not every "R" is found, even after several invocations of Replace.  The first
time, the "R" (line 1) is missed, as is the "R" in "tickR" (line 3), and the "R"
in "sizeoftickR" (line 13).  The second time, the third line is changed
correctly, but further invocations fail to find the remaining "R"'s.

I have not tested other modes.

-- 
Chris Johansen
in Asheville, nestled among the Black, Blue, and Smokey Mountains of North 
Carolina

<http://forum.pspad.com/read.php?4,44062,44062>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem