summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-29 17:35:23 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-29 17:35:23 +0200
commit92d147be959e689f8f58fd5d138a31835e160289 (patch)
tree5ba25e99d246153860ba91d9fc7629b67801d993 /src/screen.c
parentfda95e75721fb221495c69e493ec2761b5d85123 (diff)
downloadvim-git-92d147be959e689f8f58fd5d138a31835e160289.tar.gz
patch 8.1.0228: dropping files is ignored while Vim is busyv8.1.0228
Problem: Dropping files is ignored while Vim is busy. Solution: Postpone the effect of dropping files until it's safe.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 4dfbfec89..cab5731dc 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -526,6 +526,12 @@ reset_updating_screen(int may_resize_shell UNUSED)
#ifdef FEAT_TERMINAL
term_check_channel_closed_recently();
#endif
+
+#ifdef HAVE_DROP_FILE
+ // If handle_drop() was called while updating_screen was TRUE need to
+ // handle the drop now.
+ handle_any_postponed_drop();
+#endif
}
/*