Fixed a couple of buglets:
authorMark Whitley <markw@lineo.com>
Fri, 14 Jul 2000 23:24:00 +0000 (23:24 -0000)
committerMark Whitley <markw@lineo.com>
Fri, 14 Jul 2000 23:24:00 +0000 (23:24 -0000)
commit464c5de00d3dfb5f01e866f703d95bbb2bb9443c
treec770d2ac4df0293c245dc246f93abf500545d865
parent70705d7c9681b4ea870ea11d0c569d81e5822169
Fixed a couple of buglets:
 - add_cmd_str: segv's were being generated if there was a '# comment' line
   (and probably other kinds of lines, too) that was not followed by a
   semi-colon or whitespace
 - parse_edit_cmd: was returning a wrong number (too low) for the index; it
   was not accounting for backslashes eaten, for the fact that we start at the
   3rd index in the string, or for the fact that we add an extra newline.
 - parse_cmd_str: was returning a wrong number (again, too low) for the index
   in the case of single-letter commands (p,d). There was some
   over-compensation for this in the 'return' stmt at the end which also
   needed some help.
 - load_cmd_file: was not eating trailing newlines off the line read from the
   command file. This had the deleterious effect of printing an extra newlines
   after text displayed from edit (i,a,c) commands.
editors/sed.c
sed.c