commit eaa2be75c0cc969961c8fc65d85de73d4a2231a7
parent b71d660704842eec8b6caad5e5f7bc99fec8728f
Author: Pavel Renev <an2qzavok@gmail.com>
Date: Sat, 6 Nov 2021 22:14:34 +0000
improve Handler somewhat
Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/extra/Handler b/extra/Handler
@@ -70,6 +70,7 @@ fn menu {
fn link {
switch($1) {
+ case https://*; plumb $1
case http://*; plumb $1
case gopher://*; lgopher $1
case *.md; lmarkdown $1
@@ -89,15 +90,10 @@ Back
Exit
EOF
-clear
-Dir
+if (test -n $"1) link $1
+if not link .
event=''
-
-if (test -n $"1) {
- link $1
-}
-
while ( { event=`{read $rroot/ctl} } ) {
if (test -z $"event) _exit
type=$event(1)