aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorYichao Zhou <broken.zhou@gmail.com>2018-06-16 19:28:28 -0700
committerJustin M. Keyes <justinkz@gmail.com>2018-09-22 03:07:21 +0200
commit7f990741f7018b5e52833f2da6913b97c6d2d5ee (patch)
tree588ca0a71a6c007a608a549f2fabb19e2dc10f9f /src/nvim/api/ui.c
parent4fa3492a6fcba4e58639ec1039b18e883576bdd3 (diff)
downloadrneovim-7f990741f7018b5e52833f2da6913b97c6d2d5ee.tar.gz
rneovim-7f990741f7018b5e52833f2da6913b97c6d2d5ee.tar.bz2
rneovim-7f990741f7018b5e52833f2da6913b97c6d2d5ee.zip
TUI: Reset cursor color when applicable #8572
Resets the TUI cursor color if: - current 'guicursor' mode does not specify a highlight group - cursor highlight group has "inverse" or "reverse" flag - on Nvim exit We interpret, "inverse" to mean "default cursor". Example: hi Cursor guifg=bg guibg=fg set termguicolors set guicursor=n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20 * When the cursor shape is block, its color will be "inverse" * When the cursor shape is I-beam, its color will be `hi Cursor`. This is useful e.g. to prevent `set listchars=eol:¬` causing your cursor color to a low contrast color in insert mode because you cursor are often at EOL in insert mode. close #8572
Diffstat (limited to 'src/nvim/api/ui.c')
0 files changed, 0 insertions, 0 deletions