diff options
author | Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> | 2017-05-05 15:17:32 +0100 |
---|---|---|
committer | Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> | 2017-06-03 18:53:27 +0100 |
commit | d5468d3cdeda54dc7fa108ea7f1612aa88fe22a4 (patch) | |
tree | b7fc1f04c4a3f4e9b9a8874d5ec007ccfeb0ad30 /src | |
parent | fd07250e6ca10929d5523db811b2c3a83c61a012 (diff) | |
download | rneovim-d5468d3cdeda54dc7fa108ea7f1612aa88fe22a4.tar.gz rneovim-d5468d3cdeda54dc7fa108ea7f1612aa88fe22a4.tar.bz2 rneovim-d5468d3cdeda54dc7fa108ea7f1612aa88fe22a4.zip |
Change TUI resize to use an extended terminal capability.
... rather than hardwiring the string and testing the terminal
type every time the screen is re-sized.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tui/tui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 736d50ee8b..9587195e8c 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1132,11 +1132,11 @@ static void fix_terminfo(TUIData *data) } // Only define this capability for terminal types that we know understand it. - if (data->term == kTermDTTerm // originated this extension - || data->term == kTermXTerm // per xterm ctlseqs doc - || data->term == kTermKonsole // per commentary in VT102Emulation.cpp - || data->term == kTermTeraTerm // per "Supported Control Functions" doc - || data->term == kTermRxvt) { // per command.C + if (data->term == kTermDTTerm // originated this extension + || data->term == kTermXTerm // per xterm ctlseqs doco + || data->term == kTermKonsole // per commentary in VT102Emulation.cpp + || data->term == kTermTeraTerm // per TeraTerm "Supported Control Functions" doco + || data->term == kTermRxvt) { // per command.C data->unibi_ext.resize_screen = (int)unibi_add_ext_str(ut, NULL, "\x1b[8;%p1%d;%p2%dt"); } |