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.
This commit is contained in:
Nicholas Marriott
2009-07-14 06:39:25 +00:00
parent 7f98193beb
commit 5ef5bd7c31
7 changed files with 70 additions and 17 deletions

View File

@ -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 <nicm@users.sourceforge.net>
@ -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;