diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-13 21:39:45 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-13 21:39:45 +0000 |
commit | 95c8c049f5a0a0511108918cedd195f6f13e1004 (patch) | |
tree | 0f08f025105d5a7eaf51a3e085f7462b733a7503 /cmd-set-option.c | |
parent | 47e6b2725d51320928e5b0ab5c7e488920edd83d (diff) |
Redo mode keys slightly more cleanly and apply them to command prompt editing. vi or emacs mode is controlled by the session option status-keys.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 1dc8afb5..627a1205 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $Id: cmd-set-option.c,v 1.58 2009-01-30 00:24:49 nicm Exp $ */ +/* $Id: cmd-set-option.c,v 1.59 2009-02-13 21:39:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -42,6 +42,9 @@ const struct cmd_entry cmd_set_option_entry = { cmd_option_print }; +const char *set_option_status_keys_list[] = { + "emacs", "vi", NULL +}; const char *set_option_bell_action_list[] = { "none", "any", "current", NULL }; @@ -64,6 +67,7 @@ const struct set_option_entry set_option_table[NSETOPTION] = { { "status-bg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-fg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-interval", SET_OPTION_NUMBER, 0, INT_MAX, NULL }, + { "status-keys", SET_OPTION_CHOICE, 0, 0, set_option_status_keys_list }, { "status-left", SET_OPTION_STRING, 0, 0, NULL }, { "status-left-length", SET_OPTION_NUMBER, 0, SHRT_MAX, NULL }, { "status-right", SET_OPTION_STRING, 0, 0, NULL }, |