summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 15:24:28 +0000
committernicm <nicm>2020-05-16 15:24:28 +0000
commit78595457f965975cf5a24e8bbab6dcb153020b6e (patch)
tree622695a4a91e2d3fd490d8f0b9e79aa48ae9bedc /tmux.c
parenta3cbc014c386fd1f171e3139ed71c67503e1ccb3 (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 db86dc52..137c7eeb 100644
--- a/tmux.c
+++ b/tmux.c
@@ -443,6 +443,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)