From 78595457f965975cf5a24e8bbab6dcb153020b6e Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 16 May 2020 15:24:28 +0000 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 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) -- cgit