aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-12 16:15:34 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-12 16:15:34 +0000
commit22d51ec1ead8077f9528727db56e54e997da1775 (patch)
tree8c1a870eeec35123d22fa20c564676fbfea19d17 /status.c
parentfa8333eddb747e9b3c2a72c4fab4308137891f49 (diff)
downloadrtmux-22d51ec1ead8077f9528727db56e54e997da1775.tar.gz
rtmux-22d51ec1ead8077f9528727db56e54e997da1775.tar.bz2
rtmux-22d51ec1ead8077f9528727db56e54e997da1775.zip
Add a "back to indentation" key in copy mode to move the cursor to the first
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
Diffstat (limited to 'status.c')
-rw-r--r--status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/status.c b/status.c
index 8aea62a7..6841468f 100644
--- a/status.c
+++ b/status.c
@@ -709,6 +709,7 @@ status_prompt_key(struct client *c, int key)
}
break;
case MODEKEYCMD_STARTOFLINE:
+ case MODEKEYCMD_BACKTOINDENTATION:
if (c->prompt_index != 0) {
c->prompt_index = 0;
c->flags |= CLIENT_STATUS;