about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-13 17:41:02 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-13 17:42:08 +0200
commit1cfe1655e1ef6f7ae69b9c87731d571e1ef3ca8c (patch)
treef62e05768e4a4205710cb9727b40b8d0cb04f632 /res
parent9ff482dd8d5b1b252e77712e9418b5b253f4bbf8 (diff)
downloadchawan-1cfe1655e1ef6f7ae69b9c87731d571e1ef3ca8c.tar.gz
Refactor Console
* merge dom.console & client.Console
* move client-specific stuff out of Console (into callbacks when necessary)
Diffstat (limited to 'res')
-rw-r--r--res/config.toml6
1 files changed, 4 insertions, 2 deletions
diff --git a/res/config.toml b/res/config.toml
index e19f373f..dcf98951 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -194,8 +194,10 @@ C-v = 'line.escape()'
 C-p = 'line.prevHist()'
 C-n = 'line.nextHist()'
 M-c = '''
-pager.commandMode = !(console.buffer == pager.buffer);
-console[pager.commandMode ? "show" : "hide"]();
+if ((pager.commandMode = consoleBuffer != pager.buffer))
+	console.show();
+else
+	console.hide();
 '''
 'M-[D' = 'line.backward()'
 'M-[B' = 'line.nextHist()'