Mercurial > vim
comparison src/getchar.c @ 11486:1658ac359af1 v8.0.0626
patch 8.0.0626: in the GUI the cursor may flicker
commit https://github.com/vim/vim/commit/e21d69eec1870a3f4732653aa8ee25d5da10128c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 5 19:32:32 2017 +0200
patch 8.0.0626: in the GUI the cursor may flicker
Problem: In the GUI the cursor may flicker.
Solution: Check the cmd_silent flag before updating the cursor shape.
(Hirohito Higashi, closes #1637)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 05 Jun 2017 19:45:03 +0200 |
parents | ff27a6a3a243 |
children | 6a06738f8948 |
comparison
equal
deleted
inserted
replaced
11485:92a0230647df | 11486:1658ac359af1 |
---|---|
2911 showmode(); | 2911 showmode(); |
2912 } | 2912 } |
2913 } | 2913 } |
2914 #ifdef FEAT_GUI | 2914 #ifdef FEAT_GUI |
2915 /* may unshow different cursor shape */ | 2915 /* may unshow different cursor shape */ |
2916 if (gui.in_use && shape_changed) | 2916 if (gui.in_use) |
2917 gui_update_cursor(TRUE, FALSE); | 2917 { |
2918 if (cmd_silent) | |
2919 gui_dont_update_cursor(TRUE); | |
2920 else | |
2921 gui_can_update_cursor(); | |
2922 | |
2923 if (shape_changed) | |
2924 gui_update_cursor(TRUE, FALSE); | |
2925 } | |
2918 #endif | 2926 #endif |
2919 | 2927 |
2920 --vgetc_busy; | 2928 --vgetc_busy; |
2921 | 2929 |
2922 return c; | 2930 return c; |