Are you calling cmdq_error as well as returning CMD_RETURN_ERROR?


On Sun, Jul 23, 2017 at 05:05:13PM +0800, Amos Bird wrote:
> 
> Hi,
> 
> I just did a small modification to make select-pane return CMD_RETURN_ERROR 
> if there is no pane next
> to the given direction. So window_pane_find_right would return NULL if there 
> is no pane right to the
> current active pane. I also make cmd_select_pane_exec return CMD_RETURN_ERROR 
> when it gets NULL from
> sub calls. The whole point of this is to execute custom shell scripts when 
> pane navigation fails.
> Specificly, I'd like to move out the terminal emulator and active the next 
> window right to it using
> i3-msg.
> 
> So my question is, how to make tmux select-pane -R return non-zero if 
> cmd_select_pane_exec returns
> CMD_RETURN_ERROR ?
> 
> regards,
> Amos
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send an email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to