From 786dd890ccc5763e1ca3e97802c4974eab0e65cd Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sun, 20 Nov 2016 20:35:17 +0100 Subject: [PATCH] termio: dont show full/relative for emails or protocols if there is a link like bu5hm4n@efl.so or http://enlightenment.org/ , then there is no need to show relative or absolut coping in the ctxpopup, just copy is enought. --- src/bin/termio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 2d57cef7..404f3058 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -999,7 +999,9 @@ _cb_link_down(void *data, if (len > 0 && raw_link[0] == '/') absolut = EINA_TRUE; - if (!absolut && !link_is_url(raw_link)) + if (!absolut && + !link_is_url(raw_link) && + !link_is_email(raw_link)) { elm_ctxpopup_item_append(ctxp, _("Copy relative path"), NULL, _cb_ctxp_link_content_copy, sd->self);