diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-02 02:32:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-02 02:32:36 +0200 |
commit | 58422f17d8e7e5f2dcba099b8829e5d23554e980 (patch) | |
tree | 0ba8bc13df4a3712b182e17ca65ce9ca7fe45ecd /src/nvim/ui.c | |
parent | a7569b50b769b61a2f10a024fab040443bd3e906 (diff) | |
parent | 3a69dbfca6642463ca8e19f814f71791f66332f3 (diff) | |
download | rneovim-58422f17d8e7e5f2dcba099b8829e5d23554e980.tar.gz rneovim-58422f17d8e7e5f2dcba099b8829e5d23554e980.tar.bz2 rneovim-58422f17d8e7e5f2dcba099b8829e5d23554e980.zip |
Merge #6423 from justinmk/guicursor
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index ea42e3e357..babb4efa96 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -29,6 +29,7 @@ #include "nvim/screen.h" #include "nvim/syntax.h" #include "nvim/window.h" +#include "nvim/cursor_shape.h" #ifdef FEAT_TUI # include "nvim/tui/tui.h" #else @@ -179,6 +180,7 @@ void ui_refresh(void) row = col = 0; screen_resize(width, height); pum_set_external(pum_external); + ui_cursor_style_set(); } static void ui_refresh_event(void **argv) @@ -376,6 +378,13 @@ void ui_cursor_goto(int new_row, int new_col) pending_cursor_update = true; } +void ui_cursor_style_set(void) +{ + Dictionary style = cursor_shape_dict(); + UI_CALL(cursor_style_set, style); + api_free_dictionary(style); +} + void ui_update_menu(void) { UI_CALL(update_menu); |