0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.0228: dropping files is ignored while Vim is busy

Problem:    Dropping files is ignored while Vim is busy.
Solution:   Postpone the effect of dropping files until it's safe.
This commit is contained in:
Bram Moolenaar
2018-07-29 17:35:23 +02:00
parent fda95e7572
commit 92d147be95
8 changed files with 202 additions and 115 deletions

View File

@@ -911,7 +911,7 @@ vim_main2(void)
/*
* Call the main command loop. This never returns.
*/
*/
main_loop(FALSE, FALSE);
#endif /* NO_VIM_MAIN */
@@ -1155,9 +1155,15 @@ main_loop(
else if (do_redraw || stuff_empty())
{
#ifdef FEAT_GUI
/* If ui_breakcheck() was used a resize may have been postponed. */
// If ui_breakcheck() was used a resize may have been postponed.
gui_may_resize_shell();
#endif
#ifdef HAVE_DROP_FILE
// If files were dropped while text was locked or the curbuf was
// locked, this would be a good time to handle the drop.
handle_any_postponed_drop();
#endif
/* Trigger CursorMoved if the cursor moved. */
if (!finish_op && (
has_cursormoved()