From 174fe8e41ef09534218803189529cbd797750934 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 11 Jul 2020 07:46:14 +0200 Subject: [PATCH] psppire-data-window.c (on_cut): Do not append trailing whitespace to clip. --- src/ui/gui/psppire-data-window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index ac5960c9fb..5cb7f1b745 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -1092,10 +1092,12 @@ on_cut (PsppireDataWindow *dw) gchar *s = psppire_data_store_get_string (dw->data_editor->data_store, y, var, FALSE); g_string_append (str, s); - g_string_append (str, "\t"); + if (x < sel.end_x) + g_string_append (str, "\t"); g_free (s); } - g_string_append (str, "\n"); + if (y < sel.end_y) + g_string_append (str, "\n"); } gtk_clipboard_set_text (clip, str->str, str->len); -- 2.30.2