diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-01 09:02:44 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-01 09:02:44 +0100 |
commit | cc19203be2aab1adc4930b18e46d522005159412 (patch) | |
tree | 15d50f1af3bfa4017c47184c31aa6900e781c062 /tmux.c | |
parent | 7af58172457f74c6bb8e09625a07b2ddfeea2b8a (diff) | |
download | rtmux-cc19203be2aab1adc4930b18e46d522005159412.tar.gz rtmux-cc19203be2aab1adc4930b18e46d522005159412.tar.bz2 rtmux-cc19203be2aab1adc4930b18e46d522005159412.zip |
Add 'e' key in buffer mode to open the buffer in an editor.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |