ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.343 by sf-exg, Thu Jul 1 21:52:52 2010 UTC vs.
Revision 1.344 by sf-exg, Wed Jul 21 09:00:43 2010 UTC

2977 if (display->clipboard_owner == this) 2977 if (display->clipboard_owner == this)
2978 display->clipboard_owner = 0; 2978 display->clipboard_owner = 0;
2979 } 2979 }
2980} 2980}
2981 2981
2982void
2983rxvt_term::clipboard_copy (Time tm)
2984{
2985 if (selection.len > 0)
2986 {
2987 free (selection.clip_text);
2988 selection.clip_len = selection.len;
2989 selection.clip_text = (wchar_t *) malloc (sizeof (wchar_t) * selection.clip_len);
2990 memcpy (selection.clip_text, selection.text,
2991 sizeof (wchar_t) * selection.clip_len);
2992 selection_grab (tm, true);
2993 }
2994}
2995
2996/* ------------------------------------------------------------------------- */ 2982/* ------------------------------------------------------------------------- */
2997/* 2983/*
2998 * Copy a selection into the cut buffer 2984 * Copy a selection into the cut buffer
2999 * EXT: button 1 or 3 release 2985 * EXT: button 1 or 3 release
3000 */ 2986 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines