From 5ef5bd7c3127f00dca54499b48802bba85953a6a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 14 Jul 2009 06:39:25 +0000 Subject: 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. --- status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'status.c') diff --git a/status.c b/status.c index 820925f6..29c30067 100644 --- a/status.c +++ b/status.c @@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.90 2009-07-01 23:06:32 nicm Exp $ */ +/* $Id: status.c,v 1.91 2009-07-14 06:39:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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; -- cgit