summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 09:02:44 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 09:02:44 +0100
commitcc19203be2aab1adc4930b18e46d522005159412 (patch)
tree15d50f1af3bfa4017c47184c31aa6900e781c062 /tmux.c
parent7af58172457f74c6bb8e09625a07b2ddfeea2b8a (diff)
Add 'e' key in buffer mode to open the buffer in an editor.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.c b/tmux.c
index 82c3441c..48b3b8b9 100644
--- a/tmux.c
+++ b/tmux.c
@@ -434,6 +434,7 @@ main(int argc, char **argv)
/* Override keys to vi if VISUAL or EDITOR are set. */
if ((s = getenv("VISUAL")) != NULL || (s = getenv("EDITOR")) != NULL) {
+ options_set_string(global_options, "editor", 0, "%s", s);
if (strrchr(s, '/') != NULL)
s = strrchr(s, '/') + 1;
if (strstr(s, "vi") != NULL)