This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch devs/thanatermesis/paste-media
in repository terminology.

View the commit online.

commit 21542779387eae7e98a5afd7ba2b10968f49173f
Author: Samuel F. Baggen <[email protected]>
AuthorDate: Mon Aug 18 02:32:07 2025 -0500

    fixed to detect contents as text when other ones are not
---
 src/bin/termio.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 7b8d017f..77944420 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -1667,12 +1667,34 @@ _getsel_targets_cb(void *data,
              evas_object_del(img);
           }
 
+        else
+          {
+             /* If it's not a recognized media type, treat it as text */
+             DBG("Treating data as text");
+             elm_cnp_selection_get(sd->win, sd->sel_type, ELM_SEL_FORMAT_TEXT,
+                                   _getsel_cb, data);
+             if (new_filepath)
+               {
+                  DBG("Cleaning up temporary file");
+                  ecore_file_mv(new_filepath, orig_filepath);
+                  free(new_filepath);
+               }
+            return EINA_TRUE;
+          }
+
         if (new_filepath)
           {
              ecore_file_mv(new_filepath, orig_filepath);
              free(new_filepath);
           }
      }
+   else
+     {
+       /* No file data, request text format */
+       DBG("No file data found, requesting TEXT format");
+       elm_cnp_selection_get(sd->win, sd->sel_type, ELM_SEL_FORMAT_TEXT,
+                             _getsel_cb, data);
+     }
 
    return EINA_TRUE;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to