tStrip leading 'URL:' from http links - sacc - [fork] customized build of sacc, the simple console gopher client
 (HTM) git clone git://src.adamsgaard.dk/sacc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 195cee5e061cad475b897bd2e1c407f753153ae7
 (DIR) parent d7e905dedb831d22fbf27eda019e6e5dd545dfb8
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Thu, 18 Jun 2020 07:24:14 +0200
       
       Strip leading 'URL:' from http links
       
       Diffstat:
         M ui_ti.c                             |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ui_ti.c b/ui_ti.c
       t@@ -268,7 +268,10 @@ yankuri(Item *item)
                itemuri(item);
        
                if ((clip = popen(xselcmd, "w"))) {
       -                fprintf(clip, "%s", bufout);
       +                if (!strncmp(bufout, "URL:", 4))
       +                        fprintf(clip, "%s", bufout + 4);
       +                else
       +                        fprintf(clip, "%s", bufout);
                        pclose(clip);
                }
        }