177fda86451c.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 177fda86451cdeaaea8ed409e6d711b670699a97 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <gael@xfce.org>
  3. Date: Tue, 6 Feb 2024 18:14:04 +0100
  4. Subject: [PATCH] screen: Fix wrong assert
  5. It's always been wrong (or has been for a long time) but de3e7aac
  6. revealed it, because now it's no longer disabled by building with
  7. --disable-debug.
  8. Fixes: de3e7aac72fdcd3e62d69f37ec2570e5d668950a
  9. Closes: #299
  10. ---
  11. terminal/terminal-screen.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
  14. index 6e48b522..dc931ec7 100644
  15. --- a/terminal/terminal-screen.c
  16. +++ b/terminal/terminal-screen.c
  17. @@ -1892,7 +1892,7 @@ terminal_screen_paste_unsafe_text (TerminalScreen *screen,
  18. {
  19. GtkWidget *dialog;
  20. - g_return_if_fail (original_clipboard != GDK_SELECTION_CLIPBOARD && original_clipboard != GDK_SELECTION_PRIMARY);
  21. + g_return_if_fail (original_clipboard == GDK_SELECTION_CLIPBOARD || original_clipboard == GDK_SELECTION_PRIMARY);
  22. dialog = terminal_screen_unsafe_paste_dialog_new (screen, text);
  23. gtk_widget_show_all (dialog);
  24. --
  25. GitLab