[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: BigCI



Reply to note from Harry Binswanger  Sat, 18 Dec
2010 15:32:01 -0500

> I had occasion to look at the code of BigCI, and I have a
> question:
>
> You have it search for the first 36 characters of the find
> string, then, if successful, it jumps back to the start of the
> find. Why did you not just use SE/F ?

Because a salient limitation of SE/F is that it fails to find the
target string if the cursor is already on the first character of the
string. In most cases you can work around this by backing up the
cursor one position (func CL) before executing the SEarch, but if
the string is at Top_of_File (CP=0), the cursor has nowhere to go.
There is the kludge of inserting, then later deleting, a dummy
character at Top_of_File, but it's inelegant. My code works
universally.

--
Carl Distefano
cld@xxxxxxxx