mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit c6dcdff9b4aab4d14c39abf23ac48db40a670c93 parent e81fd1fb129ed2b07deed24f64038867cee0f94f Author: Rob King <jking@deadpixi.com> Date: Sat, 18 Feb 2017 14:24:49 -0600 Style fix. Diffstat:
| M | mtm.c | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/mtm.c b/mtm.c @@ -147,8 +147,11 @@ fixcursor(void) void callback(tmt_msg_t m, struct TMT *v UNUSED, const void *r UNUSED, void *p) { - if (m == TMT_MSG_BELL) beep(); - if (m == TMT_MSG_UPDATE) drawview((NODE *)p, false); + switch (m){ + case TMT_MSG_UPDATE: drawview((NODE *)p, false); break; + case TMT_MSG_MOVED: fixcursor(); break; + case TMT_MSG_BELL: beep(); break; + } } static NODE *
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.