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:
parent
92c995de73
commit
10608c8c2a
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue