mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 87065a394d6296cb8f7d210fb4fcf77bf13ff9d9 parent 7432d009ae18ceed7d5837f044f83fd11fbe297d Author: Rob King <jking@deadpixi.com> Date: Sat, 18 Feb 2017 23:21:00 -0600 Remove unneded argument. Diffstat:
| M | mtm.c | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mtm.c b/mtm.c @@ -402,10 +402,10 @@ getinput(NODE *n, void *p) } static bool -handlechar(int k, int pt) +handlechar(int k) { static bool cmd = false; - #define WRITESTR(s) safewrite(pt, s, strlen(s)) + #define WRITESTR(s) safewrite(focused->pt, s, strlen(s)) #define DO(s, i, a) if (s == cmd && i == k)\ { a ; cmd = false; return true;} @@ -473,7 +473,7 @@ run(void) if (FD_ISSET(STDIN_FILENO, &fds)){ int c = wgetch(focused->win); - if (!handlechar(c, focused->pt)) + if (!handlechar(c)) safewrite(focused->pt, (char *)&c, 1); }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.