[quake2] quake2 improvements and problem

Thomas J Fogal tfogal at pascal.unh.edu
Sun Mar 27 11:32:26 EST 2005

 <3f8ec64c050327035135c15d13 at mail.gmail.com>Sigurdur Hannesson writes:
>  /* how can I get end of line? */
> Not sure if it'll do, but hey! Try this:
> key_linepos = strlen (key_lines[edit_line];

unfortunately, no. the way text is currently done, going to the
beginning of the line clears the whole line. Therefore the above might
go to the end of the current line, but really the cursor can never
leave that position anyway. Basically, moving backwards deletes text
AND moves the cursor =(

I would imagine once someone seperates the idea of moving the cursor
and adding/deleting text, the above will work to grab the end of line.


More information about the quake2 mailing list