From cc19203be2aab1adc4930b18e46d522005159412 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 1 May 2020 09:02:44 +0100 Subject: Add 'e' key in buffer mode to open the buffer in an editor. --- tmux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tmux.c') 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) -- cgit v1.2.3