How to prevent tmux from wrapping around when searching

tmux

When I am in edit mode in a tmux pane and I do a search, once it reaches the end, it goes back to the beginning. Is there any setting to prevent this?

Best Answer

tmux now has a window option wrap-search:

wrap-search [on | off]

If this option is set, searches will wrap around the end of the pane contents. The default is on.

When this question was asked, tmux didn't have an appropriate setting, but I prepared a patch based on tmux 1.6.

Related Question