mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 04:27:00 +00:00
Add cmd_find_from_winlink_pane and use it in a couple of places, and
make functions that can't fail void.
This commit is contained in:
@ -946,11 +946,7 @@ retry:
|
||||
|
||||
/* Find default state if the pane is known. */
|
||||
if (KEYC_IS_MOUSE(key) && m->valid && wp != NULL) {
|
||||
cmd_find_clear_state(&fs, NULL, 0);
|
||||
fs.s = s;
|
||||
fs.wl = fs.s->curw;
|
||||
fs.w = fs.wl->window;
|
||||
fs.wp = wp;
|
||||
cmd_find_from_winlink_pane(&fs, s->curw, wp);
|
||||
cmd_find_log_state(__func__, &fs);
|
||||
|
||||
if (!cmd_find_valid_state(&fs))
|
||||
|
Reference in New Issue
Block a user