about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-28 21:48:44 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-28 21:51:10 +0100
commit074e2089d909e4f7ef85df89698875ec2b8935c3 (patch)
treeea6d20ba741234a849542419359b3e52133197a0 /res
parent7eeef1700eee50a2e80910ba0b07138ea1d39d55 (diff)
downloadchawan-074e2089d909e4f7ef85df89698875ec2b8935c3.tar.gz
pager: improve URL loading procs
Split up load into loadSubmit, gotoURL: loadSubmit is a replacement for
load(s + '\n'), and gotoURL is a load that does no URL expansion.

Also, fix a bug where load("\n") would crash the browser.
Diffstat (limited to 'res')
-rw-r--r--res/config.toml6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/config.toml b/res/config.toml
index 7fed5b93..f4787eed 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -150,11 +150,11 @@ K = 'n => pager.scrollUp(n)'
 ')' = 'n => pager.scrollRight(n)'
 C-m = 'pager.click()'
 C-j = 'pager.click()'
-I = 'pager.load(pager.hoverImage + "\n")'
+I = 'pager.gotoURL(pager.hoverImage)'
 M-u = 'pager.dupeBuffer()'
 C-l = 'pager.load()'
 C-k = 'pager.load("ddg:")'
-M-b = 'pager.load("~/.w3m/bookmark.html\n")'
+M-b = 'pager.loadSubmit("~/.w3m/bookmark.html")'
 U = 'pager.reload()'
 r = 'pager.redraw()'
 R = 'pager.reshape()'
@@ -246,7 +246,7 @@ M-p = '''
 	if (s === null)
 		pager.alert("Failed to read URL from clipboard. (Is xsel installed?)");
 	else
-		pager.load(s + '\n');
+		pager.loadSubmit(s);
 }
 '''