aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam <130783534+Sam-programs@users.noreply.github.com>2024-04-09 11:05:15 +0300
committerGitHub <noreply@github.com>2024-04-09 16:05:15 +0800
commit168e69ae0156e2b59e1d44b6cadbf7359d5285e9 (patch)
tree23bf5b8e0d367c6383a399c18651d0c90dff34f9
parent4a1eec85ddf4b75237df7aa8abff1180addcf03b (diff)
downloadrneovim-168e69ae0156e2b59e1d44b6cadbf7359d5285e9.tar.gz
rneovim-168e69ae0156e2b59e1d44b6cadbf7359d5285e9.tar.bz2
rneovim-168e69ae0156e2b59e1d44b6cadbf7359d5285e9.zip
fix(tui): don't set cursor color when there is none (#28236)
-rw-r--r--src/nvim/tui/tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 840d3bf446..29354a4f07 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1237,7 +1237,7 @@ static void tui_set_mode(TUIData *tui, ModeShape mode)
// We interpret "inverse" as "default" (no termcode for "inverse"...).
// Hopefully the user's default cursor color is inverse.
unibi_out_ext(tui, tui->unibi_ext.reset_cursor_color);
- } else {
+ } else if (!tui->want_invisible && aep.rgb_bg_color >= 0) {
char hexbuf[8];
if (tui->set_cursor_color_as_str) {
snprintf(hexbuf, 7 + 1, "#%06x", aep.rgb_bg_color);