diff options
author | 2020-05-16 15:24:28 +0000 | |
---|---|---|
committer | 2020-05-16 15:24:28 +0000 | |
commit | a6c9106f9d79b8887f0919341cd2b70b9b028b12 (patch) | |
tree | 40a31dcbe6c56130066619ff743c54434c45a511 /usr.bin/tmux/tmux.c | |
parent | Use formats for status-style and message-style. (diff) | |
download | wireguard-openbsd-a6c9106f9d79b8887f0919341cd2b70b9b028b12.tar.xz wireguard-openbsd-a6c9106f9d79b8887f0919341cd2b70b9b028b12.zip |
Add 'e' key in buffer mode to open the buffer in an editor.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index d00cee56545..214bbfebb4c 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.199 2020/05/16 14:26:33 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.200 2020/05/16 15:24:28 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) |