Version check fails for tmux development builds (e.g., next-3.7)
### The bug
The plugin fails to initialize on tmux versions that include a prefix in the version string, such as tmux next-3.7. The current logic in is_tmux_version_supported expects a clean semantic version (e.g., 3.3), causing it to return false even though the version is compatible.
File: scripts/utils.sh
Function: is_tmux_version_supported()
The current implementation uses IFS='.' read -r -a version < <(tmux_version), which assigns the string "next-3" to ${version[0]}, breaking the -gt and -eq comparisons.
### Proposed Fix
```Bash
# Clean the version string to handle "next-3.7" or similar formats
local clean_version=$(tmux -V | sed 's/[^0-9.]*//g')
```
0 条评论