aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-18 12:24:11 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-18 12:26:09 +0100
commitf19e5d6530981331fd858bea1f5e0a5273cb5854 (patch)
tree26c5678a51ee3b9c017a6089e9b77e856ab0ddc4 /src
parenta6de144c3e5cc888ab3cb7c2034a762b23566919 (diff)
downloadrneovim-f19e5d6530981331fd858bea1f5e0a5273cb5854.tar.gz
rneovim-f19e5d6530981331fd858bea1f5e0a5273cb5854.tar.bz2
rneovim-f19e5d6530981331fd858bea1f5e0a5273cb5854.zip
tui: setrgbf/setrgbb: emit semicolons for VTE
Severe memory leak observed on gnome-terminal 3.26.2 VTE 0.50.2 when colon-delimited RGB sequences are used. closes #7573
Diffstat (limited to 'src')
-rw-r--r--src/nvim/tui/tui.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 88da634de4..f35e99840d 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1568,10 +1568,9 @@ static void augment_terminfo(TUIData *data, const char *term,
}
// Dickey ncurses terminfo does not include the setrgbf and setrgbb
- // capabilities, proposed by RĂ¼diger Sonderfeld on 2013-10-15. So adding
- // them to terminal types, that do actually have such control sequences but
- // lack the correct definitions in terminfo, is an augmentation, not a
- // fixup. See https://gist.github.com/XVilka/8346728 for more about this.
+ // capabilities, proposed by RĂ¼diger Sonderfeld on 2013-10-15. Adding
+ // them here when terminfo lacks them is an augmentation, not a fixup.
+ // https://gist.github.com/XVilka/8346728
// At this time (2017-07-12) it seems like all terminals that support rgb
// color codes can use semicolons in the terminal code and be fine.
@@ -1581,8 +1580,8 @@ static void augment_terminfo(TUIData *data, const char *term,
// can use colons like ISO 8613-6:1994/ITU T.416:1993 says.
bool has_colon_rgb = !tmux && !screen
- && ((vte_version >= 3600) // per GNOME bug #685759, #704449
- || iterm || iterm_pretending_xterm // per analysis of VT100Terminal.m
+ && !vte_version // VTE colon-support has a big memory leak. #7573
+ && (iterm || iterm_pretending_xterm // per VT100Terminal.m
// per http://invisible-island.net/xterm/xterm.log.html#xterm_282
|| true_xterm);