Add 'e' key in buffer mode to open the buffer in an editor.

This commit is contained in:
nicm
2020-05-16 15:24:28 +00:00
parent a3cbc014c3
commit 78595457f9
11 changed files with 177 additions and 4 deletions

1
tmux.c
View File

@ -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)