Skip to content

Commit a9d2971

Browse files
committed
Fix: don't try to bind editor from @open-editor
We were trying to perform tmux key bind for `editor` which was failing. Fixes #45
1 parent cedb458 commit a9d2971

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
### master
4+
- fix a problem where we try to bind `editor` from `@open-editor`
45

56
### v3.0.0, Nov 01, 2017
67
- enable extensibility via search engines (@vasconcelloslf)

scripts/helpers.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ display_message() {
3535
}
3636

3737
stored_engine_vars() {
38-
tmux show-options -g | grep -i "^@open" | cut -d '-' -f2 | cut -d ' ' -f1 | xargs
38+
tmux show-options -g |
39+
grep -i "^@open-" |
40+
grep -vi "^@open-editor" |
41+
cut -d '-' -f2 |
42+
cut -d ' ' -f1 |
43+
xargs
3944
}
4045

4146
get_engine() {

0 commit comments

Comments
 (0)