Skip to content

Commit

Permalink
Fix tmux version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoMeyer441 committed Jan 10, 2021
1 parent 1e739f1 commit eecbaf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ source code helped a lot to understand how an easy-motion plugin can be implemen

## Requirements

This plugin needs Python 2.7 or 3.3+. You can check your installed Python version with
This plugin needs at least tmux 3.0 and Python 2.7 or 3.3+. You can check your installed tmux version with

```bash
tmux -V
```

and your installed Python version with

```bash
python --version
Expand Down
4 changes: 2 additions & 2 deletions easy_motion.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ EASY_MOTION_VALID_MOTION_KEYS_WITH_ARGUMENT="fFtTs"


check_version() {
if ! is_tmux_version_greater_or_equal "2.4"; then
display_message "tmux-easy-motion needs tmux version 2.4 or newer."
if ! is_tmux_version_greater_or_equal "3.0"; then
display_message "tmux-easy-motion needs tmux version 3.0 or newer."
return 1
fi
}
Expand Down

0 comments on commit eecbaf5

Please sign in to comment.