Files
neovim/runtime
Yichao Zhou 7f990741f7 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
2018-09-22 03:07:21 +02:00
..
2017-11-07 01:16:42 +01:00
2017-11-07 23:07:03 +01:00
2017-05-01 12:30:54 +02:00
2017-11-07 01:16:42 +01:00
2017-11-07 20:03:24 +01:00
2014-12-19 15:28:49 -05:00
2018-01-15 23:58:52 +01:00
2016-04-16 23:06:24 -07:00
2017-11-06 05:26:16 +01:00
2017-01-31 02:02:09 +01:00
2017-01-31 02:02:09 +01:00
2014-07-29 02:12:31 +00:00
2018-04-02 23:59:49 +02:00
2017-11-07 23:07:03 +01:00