lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev [PATCH 2.8.5-dev14] Paste of <URL:...>


From: Ilya Zakharevich
Subject: lynx-dev [PATCH 2.8.5-dev14] Paste of <URL:...>
Date: Tue, 18 Feb 2003 22:38:32 -0800
User-agent: Mutt/1.4i

This patch allows pasting URLs of the form <address> and <URL:address>
to lynx: useful when it is not easy to choose address without
surrounding <> or <URL:>.

Enjoy,
Ilya

--- ./src/LYMainLoop.c-ppre     Mon Feb 17 14:33:40 2003
+++ ./src/LYMainLoop.c  Tue Feb 18 18:47:08 2003
@@ -6975,6 +6975,11 @@ new_cmd:  /*
                    s++;
                while (s < e && strchr(" \t\n\r", e[-1]))
                    e--;
+               if (s[0] == '<' && e > s && e[-1] == '>') {
+                   s++; e--;
+                   if (!strncasecomp(s,"URL:", 4))
+                       s += 4;
+               }
                if (s >= e) {
                    HTInfoMsg("No URL in the clipboard.");
                    break;

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]