summaryrefslogtreecommitdiffstats
path: root/group-base/patches
diff options
context:
space:
mode:
authorWolfgang Müller2022-11-08 12:34:20 +0100
committerWolfgang Müller2022-11-08 12:34:20 +0100
commitfaf5b110d724a52113d4bda51a64cce463cf4ac6 (patch)
tree42605a54b066fb9e95f15a29f67a40f1e890904c /group-base/patches
parent96f950f6d732ec39d7865528c296c5aacccdd3d1 (diff)
downloadportage-roles-faf5b110d724a52113d4bda51a64cce463cf4ac6.tar.gz
group-base: Port neovim's statusline patch to 0.8.0
See b1abe44 (group-base: Patch visual glitches in >=neovim-0.7.2, 2022-10-15) and [1]. This is still not fixed for 0.8.0. [1] https://github.com/neovim/neovim/issues/18573
Diffstat (limited to 'group-base/patches')
-rw-r--r--group-base/patches/app-editors/neovim-0.8.0/force-tsl-override.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/group-base/patches/app-editors/neovim-0.8.0/force-tsl-override.patch b/group-base/patches/app-editors/neovim-0.8.0/force-tsl-override.patch
new file mode 100644
index 0000000..8a3ff14
--- /dev/null
+++ b/group-base/patches/app-editors/neovim-0.8.0/force-tsl-override.patch
@@ -0,0 +1,15 @@
+diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
+index e2d37860c..ed90446e6 100644
+--- a/src/nvim/tui/tui.c
++++ b/src/nvim/tui/tui.c
+@@ -1803,8 +1803,8 @@ static void patch_terminfo_bugs(TUIData *data, const char *term, const char *col
+ // 2017-04 terminfo.src lacks these. Xterm-likes have them.
+ if (!hterm) {
+ // hterm doesn't have a status line.
+- unibi_set_if_empty(ut, unibi_to_status_line, "\x1b]0;");
+- unibi_set_if_empty(ut, unibi_from_status_line, "\x07");
++ unibi_set_str(ut, unibi_to_status_line, "\x1b]0;");
++ unibi_set_str(ut, unibi_from_status_line, "\x07");
+ // TODO(aktau): patch this in when DECSTBM is fixed (https://crbug.com/1298796)
+ unibi_set_if_empty(ut, unibi_set_tb_margin, "\x1b[%i%p1%d;%p2%dr");
+ }