dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 50b9e5e922213befe57fe1d3e4432277076d9f5c
parent 5f478d6cd28e4c2bef7f63fa3eacb70d796007f1
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 28 Jun 2014 17:29:02 +0200

Replace hardcoded constants with CTRL macro

Diffstat:
vt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vt.c b/vt.c @@ -1939,7 +1939,7 @@ static void cmdline_keypress(Cmdline *c, int keycode) c->display = disp >= c->buf ? disp + 1: c->buf; c->cursor_pos = (width < c->width - 1) ? width : c->width - 1; break; - case 1 ... 26: /* CTRL('a') ... CTRL('z') */ + case CTRL('a') ... CTRL('z'): if (keycode != '\n') break; copymode_search(c->data, c->prefix == '/' ? 1 : -1);