version 1.25, 2009/08/21 07:33:58 |
version 1.26, 2009/09/07 18:50:45 |
|
|
window_copy_copy_line(wp, &buf, &off, ey, 0, ex); |
window_copy_copy_line(wp, &buf, &off, ey, 0, ex); |
} |
} |
|
|
/* Terminate buffer, overwriting final \n. */ |
/* Don't bother if no data. */ |
if (off != 0) |
if (off == 0) { |
buf[off - 1] = '\0'; |
xfree(buf); |
|
return; |
|
} |
|
off--; /* remove final \n */ |
|
|
/* Add the buffer to the stack. */ |
/* Add the buffer to the stack. */ |
limit = options_get_number(&c->session->options, "buffer-limit"); |
limit = options_get_number(&c->session->options, "buffer-limit"); |
paste_add(&c->session->buffers, buf, limit); |
paste_add(&c->session->buffers, buf, off, limit); |
} |
} |
|
|
void |
void |