---
** [tickets:#98] Bug: Select-pane doesn't focus the window of the pane**
**Status:** open
**Labels:** bug select-pane
**Created:** Sun Jan 26, 2014 04:07 PM UTC by yeganer
**Last Updated:** Sun Jan 26, 2014 04:07 PM UTC
**Owner:** nobody
Using "select-pane -t :." to select a pane in an i
In case of a partial match (cases where buf is shorter than
template) the loop was comparing one character too much, ending up
with comparing \0 in buf which would fail.
Fix: change pos++ to ++pos
The incrementation of the template counter has to be done always,
so the conditions in the loop need