about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-20 13:22:03 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-20 13:22:16 +0100
commitaa5c5f18257a7fdf42eaa7e63ea18f93a6a4ee8c (patch)
treedcf739edf4c0b033340170fd5af784d7ac2bbf61 /res
parent5c10df5ea14305bd6da238bd56a10192f4a06fea (diff)
downloadchawan-aa5c5f18257a7fdf42eaa7e63ea18f93a6a4ee8c.tar.gz
res/config: fix M-c console binding
Diffstat (limited to 'res')
-rw-r--r--res/config.toml5
1 files changed, 1 insertions, 4 deletions
diff --git a/res/config.toml b/res/config.toml
index 541f28e3..d4aab229 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -123,8 +123,5 @@ C-p = 'line.prevHist()'
 C-n = 'line.nextHist()'
 M-c = '''
 pager.commandMode = !(console.buffer == pager.buffer);
-if (pager.commandMode)
-	console.hide();
-else
-	console.show();
+console[pager.commandMode ? "show" : "hide"]();
 '''