Convert hidden flag to a full flags word for the status line and add a flag to

accept after only one key. Use this so don't need to press enter after y/n for
confirm-before.
This commit is contained in:
Nicholas Marriott
2009-04-27 17:27:36 +00:00
parent 1f2d9e64bb
commit 5d1b6888dc
4 changed files with 24 additions and 11 deletions

9
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.302 2009-04-27 14:51:59 nicm Exp $ */
/* $Id: tmux.h,v 1.303 2009-04-27 17:27:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -857,9 +857,14 @@ struct client {
size_t prompt_index;
int (*prompt_callback)(void *, const char *);
void *prompt_data;
int prompt_hidden;
#define PROMPT_HIDDEN 0x1
#define PROMPT_SINGLE 0x2
int prompt_flags;
u_int prompt_hindex;
ARRAY_DECL(, char *) prompt_hdata;
struct mode_key_data prompt_mdata;
struct session *session;