aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com>2017-05-05 15:17:32 +0100
committerJonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com>2017-06-03 18:53:27 +0100
commitd5468d3cdeda54dc7fa108ea7f1612aa88fe22a4 (patch)
treeb7fc1f04c4a3f4e9b9a8874d5ec007ccfeb0ad30
parentfd07250e6ca10929d5523db811b2c3a83c61a012 (diff)
downloadrneovim-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.
-rw-r--r--src/nvim/tui/tui.c10
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");
}