diff options
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index ffa3944d69..6303e10d59 100644 --- a/src/term.c +++ b/src/term.c @@ -2501,6 +2501,27 @@ out_flush(void) } } +/* + * out_flush_cursor(): flush the output buffer and redraw the cursor + */ + void +out_flush_cursor( + int force UNUSED, /* when TRUE, update cursor even when not moved */ + int clear_selection UNUSED) /* clear selection under cursor */ +{ + mch_disable_flush(); + out_flush(); + mch_enable_flush(); +#ifdef FEAT_GUI + if (gui.in_use) + { + gui_update_cursor(force, clear_selection); + gui_may_flush(); + } +#endif +} + + #if defined(FEAT_MBYTE) || defined(PROTO) /* * Sometimes a byte out of a multi-byte character is written with out_char(). |