diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-18 19:58:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-18 19:58:41 +0100 |
commit | 463d28cc8079c2dd474c462fc84b7f7a67ee9b44 (patch) | |
tree | 94a61b61465db99d047142ada9b345a5e582aa77 | |
parent | 344dd2757ac24417252ac4d5c73382eb07f81ede (diff) | |
download | rneovim-463d28cc8079c2dd474c462fc84b7f7a67ee9b44.tar.gz rneovim-463d28cc8079c2dd474c462fc84b7f7a67ee9b44.tar.bz2 rneovim-463d28cc8079c2dd474c462fc84b7f7a67ee9b44.zip |
TUI: support TERM=nsterm (#9244)
`:help $TERM` recommends TERM=nsterm for Terminal.app but we did not
actually support it.
NB: We don't include a builtin term for Terminal.app, presumably because
nsterm is commonly available on most systems (`infocmp nsterm`).
-rw-r--r-- | src/nvim/tui/tui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index b6986b77e9..d2ddd98fd4 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1466,7 +1466,9 @@ static void patch_terminfo_bugs(TUIData *data, const char *term, #if 0 // We don't need to identify this specifically, for now. bool roxterm = !!os_getenv("ROXTERM_ID"); #endif - bool xterm = terminfo_is_term_family(term, "xterm"); + bool xterm = terminfo_is_term_family(term, "xterm") + // Treat Terminal.app as generic xterm-like, for now. + || terminfo_is_term_family(term, "nsterm"); bool kitty = terminfo_is_term_family(term, "xterm-kitty"); bool linuxvt = terminfo_is_term_family(term, "linux"); bool rxvt = terminfo_is_term_family(term, "rxvt"); |