mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add 'e' key in buffer mode to open the buffer in an editor.
This commit is contained in:
1
tmux.c
1
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)
|
||||
|
Reference in New Issue
Block a user