aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-03 16:16:21 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-04 14:19:26 +0200
commit3ccd59ee8216f3da812c5cf81eb392e6a95b539a (patch)
tree218958ab0e2d7b7e359778f68a56079da47a3c2d /src/nvim/ui.c
parent9d560d5c6b02d34690ca47ee6f32e31ee4a6d90e (diff)
downloadrneovim-3ccd59ee8216f3da812c5cf81eb392e6a95b539a.tar.gz
rneovim-3ccd59ee8216f3da812c5cf81eb392e6a95b539a.tar.bz2
rneovim-3ccd59ee8216f3da812c5cf81eb392e6a95b539a.zip
'guicursor': enabled=false if 'guicursor' is empty
Closes #6429 Closes #6430
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index babb4efa96..28f71b7ef2 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -381,7 +381,8 @@ void ui_cursor_goto(int new_row, int new_col)
void ui_cursor_style_set(void)
{
Dictionary style = cursor_shape_dict();
- UI_CALL(cursor_style_set, style);
+ bool enabled = (*p_guicursor != NUL);
+ UI_CALL(cursor_style_set, enabled, style);
api_free_dictionary(style);
}