jonnyg@ROVER.UMD.EDU (Jon Greenblatt) (12/22/88)
I sent this to xbugs but I thought some people might need this fix earlier. The bug involves pressing the right mouse button to select text in an xterm window. If text has scrolled off the screen and you press the right mouse button, the anchor point is assumed to be line 0 instead of the top of the screen as documented. On an RT this will cause a core dump and will kill the xterm window. This problem has been so anoying for me I am posting the fix to xpert. I would suggest removing this fix when adding official patches to xterm then replacing it when done. Eventualy this will be fixed by the MIT guys (the last time xbugs was accessed was Dec 4!) so keep an eye on the official fixes for this. *** clients/xterm/button.c.dist Tue Dec 20 20:21:24 1988 --- clients/xterm/button.c Tue Dec 20 20:19:04 1988 *************** *** 856,861 **** --- 856,862 ---- --col; /* first we need to know how long the string is before we can save it*/ + if (crow < 0) crow = 0; if ( row == crow ) j = Length(screen, crow, ccol, col); else { /* two cases, cut is on same line, cut spans multiple lines*/ j += Length(screen, crow, ccol, screen->max_col) + 1; JonnyG. (jonnyg@rover.umd.edu) (jonnyg@umd5.umd.edu)