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

This commit is contained in:
Nicholas Marriott
2020-05-01 09:02:44 +01:00
parent 7af5817245
commit cc19203be2
11 changed files with 176 additions and 4 deletions

1
tmux.c
View File

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