diff options
author | June McEnroe <june@causal.agency> | 2020-04-07 10:48:44 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-07 10:48:44 -0400 |
commit | e3f7362241a82d2089a45d119b86109c9d89ec8f (patch) | |
tree | c07c14f663ae4d21c2c5eb38353c72161051b99a /ui.c | |
parent | Add split scrolling to README (diff) | |
download | catgirl-e3f7362241a82d2089a45d119b86109c9d89ec8f.tar.gz catgirl-e3f7362241a82d2089a45d119b86109c9d89ec8f.zip |
Add M-q to collapse whitespace
Diffstat (limited to '')
-rw-r--r-- | ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.c b/ui.c index 03fa776..da6cd18 100644 --- a/ui.c +++ b/ui.c @@ -211,6 +211,7 @@ static short colorPair(short fg, short bg) { X(KeyMetaF, "\33f", NULL) \ X(KeyMetaL, "\33l", NULL) \ X(KeyMetaM, "\33m", NULL) \ + X(KeyMetaQ, "\33q", NULL) \ X(KeyMetaU, "\33u", NULL) \ X(KeyMetaV, "\33v", NULL) \ X(KeyMetaEnter, "\33\r", "\33\n") \ @@ -911,6 +912,7 @@ static void keyCode(int code) { break; case KeyMetaF: edit(id, EditNextWord, 0); break; case KeyMetaL: bufferList(&window->buffer); break; case KeyMetaM: waddch(window->pad, '\n'); + break; case KeyMetaQ: edit(id, EditCollapse, 0); break; case KeyMetaU: windowScrollUnread(window); break; case KeyMetaV: windowScroll(window, +(PAGE_LINES - 2)); |