shithub: riscv

Download patch

ref: 8781283fbdffc5f362c64791d5c0f0f641010b34
parent: b3548406b5298a0840a4001316276ed2e6491964
author: Sigrid <ftrvxmtrx@gmail.com>
date: Tue Jan 19 09:14:28 EST 2021

mothra: resolve urls on middle click. helps with snarfing of relative urls

--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -776,7 +776,7 @@
 void hiturl(int buttons, char *url, int map){
 	switch(buttons){
 	case 1: geturl(url, -1, 0, map); break;
-	case 2: selurl(url); break;
+	case 2: urlresolve(selurl(url)); break;
 	case 4: message("Button 3 hit on url can't happen!"); break;
 	}
 }