From 7036b10326db536ebca62c5a1bf56ea5d105e16d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Apr 2026 11:37:10 +0530 Subject: [PATCH] Padding at the sides of rendered dragged URL --- kitty/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index 39e27e468..46677fb91 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -1321,7 +1321,7 @@ class Window: fg = color_as_int(self.screen.color_profile.default_fg) bg = color_as_int(self.screen.color_profile.default_bg) width = self.geometry.right - self.geometry.left - pixels, width = draw_single_line_of_text(self.os_window_id, url, 0xff000000 | fg, 0xff000000 | bg, width, max_width=True) + pixels, width = draw_single_line_of_text(self.os_window_id, f' {url} ', 0xff000000 | fg, 0xff000000 | bg, width, max_width=True) height = len(pixels) // (width * 4) thumbnails = ((pixels, width, height),) drag_data = {'text/uri-list': (url + '\r\n').encode()}