1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 00:51:50 -08:00

(Fx_store_cut_buffer_internal): Handle empty string right.

This commit is contained in:
Richard M. Stallman 1993-06-04 05:32:31 +00:00
parent 92c995de73
commit 10608c8c2a

View file

@ -1795,6 +1795,12 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal,
if (! cut_buffers_initialized) initialize_cut_buffers (display, window);
BLOCK_INPUT;
/* Don't mess up with an empty value. */
if (!bytes_remaining)
XChangeProperty (display, window, buffer_atom, XA_STRING, 8,
PropModeReplace, data, 0);
while (bytes_remaining)
{
int chunk = (bytes_remaining < max_bytes