aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com>2017-05-25 17:39:27 +0100
committerJonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com>2017-06-03 18:53:27 +0100
commit03683c375cb3ded56f7edbcc70619bab1e8dd4f9 (patch)
treea791a3947e0aedeef1a805a0b632831a3c192be9 /src
parent3d8e0594e495c42dbdf3871ef3c3023e128f748c (diff)
downloadrneovim-03683c375cb3ded56f7edbcc70619bab1e8dd4f9.tar.gz
rneovim-03683c375cb3ded56f7edbcc70619bab1e8dd4f9.tar.bz2
rneovim-03683c375cb3ded56f7edbcc70619bab1e8dd4f9.zip
tui: Disable interference in guicursor by higher layers.
Ironically, higher layers trying to be "smart" about the terminal type but not actually being very smart at all, makes it more difficult rather than less to correct the TUI layer. Note that this orphans the os_term_is_nice() function and down the road, presuming that we do not have to revert this, that function can be removed. It incorporates knowledge of terminal types and behaviours in the wrong place.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 392a2f3908..0c423c900f 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -969,10 +969,12 @@ void set_init_2(bool headless)
p_window = Rows - 1;
}
set_number_default("window", Rows - 1);
+#if 0 // This bodges around problems that should properly be fixed in the TUI layer.
if (!headless && !os_term_is_nice()) {
set_string_option_direct((char_u *)"guicursor", -1, (char_u *)"",
OPT_GLOBAL, SID_NONE);
}
+#endif
parse_shape_opt(SHAPE_CURSOR); // set cursor shapes from 'guicursor'
(void)parse_printoptions(); // parse 'printoptions' default value
}