tmux-plugins / tmux-yank

Tmux plugin for copying to system clipboard. Works on OSX, Linux and Cygwin.
https://tmux-plugins.github.io/tmux-yank/
MIT License
2.72k stars 122 forks source link

scripts/helpers.sh: fix version compare #134

Closed lilalkor closed 4 years ago

lilalkor commented 4 years ago

When we are iterating the version number, we need to stop on first non-equal digit. i.e. 2.4 vs 3.0:

3 > 2  <-- we need to stop here
0 < 4

So just added return 0 on that case. Fixes #132

shaneog commented 4 years ago

@bruno- Could this be merged please? Yanking is broken on tmux 3.0