version 1.24, 2017/05/04 07:16:43 |
version 1.25, 2017/08/30 10:33:57 |
|
|
|
|
cmd_find_clear_state(&fs, 0); |
cmd_find_clear_state(&fs, 0); |
if (cmd_find_empty_state(&ne->fs) || !cmd_find_valid_state(&ne->fs)) |
if (cmd_find_empty_state(&ne->fs) || !cmd_find_valid_state(&ne->fs)) |
cmd_find_from_nothing(&fs); |
cmd_find_from_nothing(&fs, 0); |
else |
else |
cmd_find_copy_state(&fs, &ne->fs); |
cmd_find_copy_state(&fs, &ne->fs); |
|
|
|
|
{ |
{ |
struct cmd_find_state fs; |
struct cmd_find_state fs; |
|
|
cmd_find_from_client(&fs, c); |
cmd_find_from_client(&fs, c, 0); |
notify_add(name, &fs, c, NULL, NULL, NULL); |
notify_add(name, &fs, c, NULL, NULL, NULL); |
} |
} |
|
|
|
|
struct cmd_find_state fs; |
struct cmd_find_state fs; |
|
|
if (session_alive(s)) |
if (session_alive(s)) |
cmd_find_from_session(&fs, s); |
cmd_find_from_session(&fs, s, 0); |
else |
else |
cmd_find_from_nothing(&fs); |
cmd_find_from_nothing(&fs, 0); |
notify_add(name, &fs, NULL, s, NULL, NULL); |
notify_add(name, &fs, NULL, s, NULL, NULL); |
} |
} |
|
|
|
|
{ |
{ |
struct cmd_find_state fs; |
struct cmd_find_state fs; |
|
|
cmd_find_from_winlink(&fs, wl); |
cmd_find_from_winlink(&fs, wl, 0); |
notify_add(name, &fs, NULL, wl->session, wl->window, NULL); |
notify_add(name, &fs, NULL, wl->session, wl->window, NULL); |
} |
} |
|
|
|
|
{ |
{ |
struct cmd_find_state fs; |
struct cmd_find_state fs; |
|
|
cmd_find_from_session_window(&fs, s, w); |
cmd_find_from_session_window(&fs, s, w, 0); |
notify_add(name, &fs, NULL, s, w, NULL); |
notify_add(name, &fs, NULL, s, w, NULL); |
} |
} |
|
|
|
|
{ |
{ |
struct cmd_find_state fs; |
struct cmd_find_state fs; |
|
|
cmd_find_from_window(&fs, w); |
cmd_find_from_window(&fs, w, 0); |
notify_add(name, &fs, NULL, NULL, w, NULL); |
notify_add(name, &fs, NULL, NULL, w, NULL); |
} |
} |
|
|
|
|
{ |
{ |
struct cmd_find_state fs; |
struct cmd_find_state fs; |
|
|
cmd_find_from_pane(&fs, wp); |
cmd_find_from_pane(&fs, wp, 0); |
notify_add(name, &fs, NULL, NULL, NULL, wp); |
notify_add(name, &fs, NULL, NULL, NULL, wp); |
} |
} |