diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-13 17:41:02 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-13 17:42:08 +0200 |
commit | 1cfe1655e1ef6f7ae69b9c87731d571e1ef3ca8c (patch) | |
tree | f62e05768e4a4205710cb9727b40b8d0cb04f632 /res | |
parent | 9ff482dd8d5b1b252e77712e9418b5b253f4bbf8 (diff) | |
download | chawan-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.toml | 6 |
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()' |