aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/tui/tui.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index f9c5521bdb..bb75286369 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1663,6 +1663,14 @@ static void patch_terminfo_bugs(TUIData *data, const char *term, const char *col
ILOG("Disabling smglr with TERM=xterm for non-xterm.");
unibi_set_str(ut, unibi_set_lr_margin, NULL);
}
+ if (unibi_get_str(ut, unibi_set_left_margin_parm)) {
+ ILOG("Disabling smglp with TERM=xterm for non-xterm.");
+ unibi_set_str(ut, unibi_set_left_margin_parm, NULL);
+ }
+ if (unibi_get_str(ut, unibi_set_right_margin_parm)) {
+ ILOG("Disabling smgrp with TERM=xterm for non-xterm.");
+ unibi_set_str(ut, unibi_set_right_margin_parm, NULL);
+ }
}
#ifdef WIN32
@@ -1687,6 +1695,14 @@ static void patch_terminfo_bugs(TUIData *data, const char *term, const char *col
ILOG("Disabling smglr with TERM=screen.xterm for screen.");
unibi_set_str(ut, unibi_set_lr_margin, NULL);
}
+ if (unibi_get_str(ut, unibi_set_left_margin_parm)) {
+ ILOG("Disabling smglp with TERM=screen.xterm for screen.");
+ unibi_set_str(ut, unibi_set_left_margin_parm, NULL);
+ }
+ if (unibi_get_str(ut, unibi_set_right_margin_parm)) {
+ ILOG("Disabling smgrp with TERM=screen.xterm for screen.");
+ unibi_set_str(ut, unibi_set_right_margin_parm, NULL);
+ }
} else if (tmux) {
unibi_set_if_empty(ut, unibi_to_status_line, "\x1b_");
unibi_set_if_empty(ut, unibi_from_status_line, "\x1b\\");