diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-12 19:51:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-12 19:51:41 +0200 |
commit | 3cd43ccccb03b2e68df9c8a344a87e51c007c656 (patch) | |
tree | 51e41f2ba0520be2c6f4b0753538259545feca05 /src/ui.c | |
parent | 589b1109c55409baf27f79920d8ffc95111eaa01 (diff) | |
download | vim-git-3cd43ccccb03b2e68df9c8a344a87e51c007c656.tar.gz |
patch 8.0.0918: cannot get terminal window cursor shape or attributesv8.0.0918
Problem: Cannot get terminal window cursor shape or attributes.
Solution: Support cursor shape, attributes and color.
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1942,14 +1942,14 @@ read_error_exit(void) * May update the shape of the cursor. */ void -ui_cursor_shape(void) +ui_cursor_shape_forced(int forced) { # ifdef FEAT_GUI if (gui.in_use) gui_update_cursor_later(); else # endif - term_cursor_shape(); + term_cursor_mode(forced); # ifdef MCH_CURSOR_SHAPE mch_update_cursor(); @@ -1959,6 +1959,12 @@ ui_cursor_shape(void) conceal_check_cursur_line(); # endif } + + void +ui_cursor_shape(void) +{ + ui_cursor_shape_forced(FALSE); +} #endif #if defined(FEAT_CLIPBOARD) || defined(FEAT_GUI) || defined(FEAT_RIGHTLEFT) \ |