diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-05-19 13:32:55 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-05-19 13:32:55 +0000 |
commit | 80af85a102bcb4c91d6ce08102131a4654212d80 (patch) | |
tree | b207ee59eea50f38dd6df496710a4897157dd748 /cmd-set-window-option.c | |
parent | a385f757925110af9cc54c5d55298ede22e55e97 (diff) | |
download | rtmux-80af85a102bcb4c91d6ce08102131a4654212d80.tar.gz rtmux-80af85a102bcb4c91d6ce08102131a4654212d80.tar.bz2 rtmux-80af85a102bcb4c91d6ce08102131a4654212d80.zip |
- New window option monitor-content to search for a string in a window, and
highlight the status line if it matches.
- To make this possible, the function cmd_find_window_search from
cmd-find-window.c had to be moved to window.c and renamed window_pane_search.
- While there use three new functions in server.c to check for bell, activity,
and content, to avoid too much nesting.
Diffstat (limited to 'cmd-set-window-option.c')
-rw-r--r-- | cmd-set-window-option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-set-window-option.c b/cmd-set-window-option.c index 750c4d22..488bdfb1 100644 --- a/cmd-set-window-option.c +++ b/cmd-set-window-option.c @@ -1,4 +1,4 @@ -/* $Id: cmd-set-window-option.c,v 1.25 2009-05-18 21:55:53 nicm Exp $ */ +/* $Id: cmd-set-window-option.c,v 1.26 2009-05-19 13:32:55 tcunha Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -67,6 +67,7 @@ const struct set_option_entry set_window_option_table[NSETWINDOWOPTION] = { { "mode-fg", SET_OPTION_COLOUR, 0, 0, NULL }, { "mode-keys", SET_OPTION_CHOICE, 0, 0, set_option_mode_keys_list }, { "monitor-activity", SET_OPTION_FLAG, 0, 0, NULL }, + { "monitor-content", SET_OPTION_STRING, 0, 0, NULL }, { "remain-on-exit", SET_OPTION_FLAG, 0, 0, NULL }, { "utf8", SET_OPTION_FLAG, 0, 0, NULL }, { "window-status-attr", SET_OPTION_ATTRIBUTES, 0, 0, NULL }, |