Commit 22e00739 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty.

parent daa02ea5
......@@ -2094,7 +2094,8 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
x_get_window_property (display, window, buffer_atom, &data, &bytes,
&type, &format, &size, 0);
if (!data) return Qnil;
if (!data || !format)
return Qnil;
if (format != 8 || type != XA_STRING)
Fsignal (Qerror,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment