]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0630: popup images: kitty images output in GUI mode v9.2.0630
authorFoxe Chen <chen.foxe@gmail.com>
Sat, 13 Jun 2026 17:31:40 +0000 (17:31 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 13 Jun 2026 17:31:40 +0000 (17:31 +0000)
Problem:  popup images: kitty images output in GUI mode
Solution: return early in GUI mode (Foxe Chen).

closes: #20502

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupwin.c
src/version.c

index 94ffe89391ff28476e9fd61c89b3d833431062a9..3d427b5a63b77c5098b008eab8c606139f18e10b 100644 (file)
@@ -7010,6 +7010,10 @@ popup_image_clear_kitty(win_T *wp)
 {
     char_u  *seq;
 
+#  ifdef FEAT_GUI
+    if (gui.in_use)
+       return;
+#  endif
     if (wp == NULL || wp->w_popup_image_data == NULL || wp->w_id <= 0)
        return;
     if (popup_image_backend() != IMAGE_BACKEND_KITTY)
index 4d961bdebd931b438a1fcb8153b3255ad5bf0dd8..7f2591dfe148c4d204f52311a4a1d706af312833 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    630,
 /**/
     629,
 /**/