jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

bug in srchmisc.sl?


There seems to be a problem with jed (0.99.16)
in the replace_with_query function in srchmisc.sl
It seems not to handle 0 length source patterns
correctly (such as end of line). Or maybe the
bug is in the routine that returns the pattern length.

It manifests itself in a few ways.

1) If you use $ as your first regexp (end of line)
	and anything as your second, you are prompted to
	substitute at end of line as you expect, but
	after the substitution, you are prompted again at the
	end of the same line. This continues foreever.
	
2) If you select to use the non-interactive flag
	(set query to off) then the code
	loops foreever, appending the target string
	onto the current line.
	
Am I correct in the above or am I doing something stupid?

Regards,
pdg

--

See mail headers for contact information.



--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]