Path: utzoo!utgpu!news-server.csri.toronto.edu!smoke.cs.toronto.edu!neat.cs.toronto.edu!moraes Newsgroups: comp.windows.x From: moraes@cs.toronto.edu (Mark Moraes) Subject: Re: xterm cut and paste Message-ID: <90Jul27.024537edt.446@smoke.cs.toronto.edu> Organization: Department of Computer Science, University of Toronto References: <9007221535.AA04491@expo.lcs.mit.edu> Date: 27 Jul 90 06:46:23 GMT Lines: 29 In <9007221535.AA04491@expo.lcs.mit.edu>, rws@EXPO.LCS.MIT.EDU (Bob Scheifler) writes: >The following is an xterm enhancement we received at one point. >This code has been integrated into our sources, but it is quite >possible bugs were fixed in the process. Jim Fulton fixed at least one bug in my fix -- enclosed. Please apply this as well as the one in the referenced article, otherwise there are likely to be garbage characters, (usually NULs at the end of the cut text) Mark. *** /tmp/,RCSt1a25742 Fri Jul 27 02:39:32 1990 --- button.c Fri Jul 27 02:34:40 1990 *************** *** 1047,1051 **** *lp = '\0'; /* make sure we have end marked */ ! screen->selection_length = j; _OwnSelection(term, params, num_params); } --- 1047,1051 ---- *lp = '\0'; /* make sure we have end marked */ ! screen->selection_length = lp - line; _OwnSelection(term, params, num_params); }