zvt problem
- From: Lyndon Drake <lyndon stat auckland ac nz>
- To: Gnome List <gnome-list gnome org>
- Subject: zvt problem
- Date: Thu, 21 Jan 1999 11:33:22 +1300
Hi,
I've noticed that mouse copy and paste in gnome-terminal doesn't always
copy all the text that was selected. This bug particularly shows up when
copying compiler output. I think the problem is in gnome-libs/zvt/update.c,
line 892:
/* makes a rough assumption about the buffer size needed */
if ( (data = g_malloc((ey-sy+1)*(vx->vt.width+20))) == 0 ) {
*len = 0;
printf("ERROR: Cannot g_malloc selection buffer\n");
return 0;
}
This calculation assumes that the lines will only be 20 characters wider
than the terminal width on average, which of course is often false for
such things as compiler output. I'm not sure how to fix it, but surely
there is some way to iterate over the selected text to find its length
before allocating the buffer?
Thanks,
Lyndon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]