diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-04-18 13:42:04 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-04-21 12:32:38 +0200 |
commit | 7ea5c78687168c07bfc4582c84145e86a5252f94 (patch) | |
tree | 0479e2b07e32d4e3f4df6002a8ab643685fd5fb8 /src/nvim/ui.c | |
parent | 2c5751b9b2b22b8519aeda82088fe4525f2bd713 (diff) | |
download | rneovim-7ea5c78687168c07bfc4582c84145e86a5252f94.tar.gz rneovim-7ea5c78687168c07bfc4582c84145e86a5252f94.tar.bz2 rneovim-7ea5c78687168c07bfc4582c84145e86a5252f94.zip |
ui: use an array for mode styles
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 8c5e579301..5fb57dd257 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -175,7 +175,7 @@ void ui_refresh(void) row = col = 0; screen_resize(width, height); pum_set_external(pum_external); - ui_cursor_style_set(); + ui_mode_info_set(); old_mode_idx = -1; ui_cursor_shape(); } @@ -375,12 +375,12 @@ void ui_cursor_goto(int new_row, int new_col) pending_cursor_update = true; } -void ui_cursor_style_set(void) +void ui_mode_info_set(void) { - Dictionary style = cursor_shape_dict(); + Array style = mode_style_array(); bool enabled = (*p_guicursor != NUL); - UI_CALL(cursor_style_set, enabled, style); - api_free_dictionary(style); + UI_CALL(mode_info_set, enabled, style); + api_free_array(style); } void ui_update_menu(void) |