--- rxvt-unicode/src/screen.C 2004/02/25 10:26:50 1.38 +++ rxvt-unicode/src/screen.C 2004/02/25 15:06:05 1.39 @@ -2737,6 +2737,7 @@ default: return; } + selection.op = SELECTION_DONE; if (selection.clicks == 4) @@ -2797,7 +2798,7 @@ return; } - // due to MB_MAX_CUR, selection wastage is usually high, so realloc + // due to MB_CUR_MAX, selection wastage is usually high, so realloc if (str - (char *)new_selection_text > 1024) new_selection_text = (unsigned char *)rxvt_realloc (new_selection_text, i + 1); @@ -2821,12 +2822,12 @@ if (XmbTextListToTextProperty (display->display, &cl, 1, XStringStyle, &ct) >= 0) { XChangeProperty (display->display, display->root, XA_CUT_BUFFER0, XA_STRING, 8, - PropModeReplace, ct.value, ct.nitems); + PropModeReplace, ct.value, ct.nitems); XFree (ct.value); } else XChangeProperty (display->display, display->root, XA_CUT_BUFFER0, XA_STRING, 8, - PropModeReplace, selection.text, (int)selection.len); + PropModeReplace, selection.text, (int)selection.len); } selection_time = tm;