comparison src/main.c @ 14428:aab5947be7c5 v8.1.0228

patch 8.1.0228: dropping files is ignored while Vim is busy commit https://github.com/vim/vim/commit/92d147be959e689f8f58fd5d138a31835e160289 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 29 17:35:23 2018 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 29 Jul 2018 17:45:05 +0200
parents ddf160d82971
children 3375a8cbb442
comparison
equal deleted inserted replaced
14427:a6055273c735 14428:aab5947be7c5
909 909
910 TIME_MSG("before starting main loop"); 910 TIME_MSG("before starting main loop");
911 911
912 /* 912 /*
913 * Call the main command loop. This never returns. 913 * Call the main command loop. This never returns.
914 */ 914 */
915 main_loop(FALSE, FALSE); 915 main_loop(FALSE, FALSE);
916 916
917 #endif /* NO_VIM_MAIN */ 917 #endif /* NO_VIM_MAIN */
918 918
919 return 0; 919 return 0;
1153 if (skip_redraw || exmode_active) 1153 if (skip_redraw || exmode_active)
1154 skip_redraw = FALSE; 1154 skip_redraw = FALSE;
1155 else if (do_redraw || stuff_empty()) 1155 else if (do_redraw || stuff_empty())
1156 { 1156 {
1157 #ifdef FEAT_GUI 1157 #ifdef FEAT_GUI
1158 /* If ui_breakcheck() was used a resize may have been postponed. */ 1158 // If ui_breakcheck() was used a resize may have been postponed.
1159 gui_may_resize_shell(); 1159 gui_may_resize_shell();
1160 #endif 1160 #endif
1161 #ifdef HAVE_DROP_FILE
1162 // If files were dropped while text was locked or the curbuf was
1163 // locked, this would be a good time to handle the drop.
1164 handle_any_postponed_drop();
1165 #endif
1166
1161 /* Trigger CursorMoved if the cursor moved. */ 1167 /* Trigger CursorMoved if the cursor moved. */
1162 if (!finish_op && ( 1168 if (!finish_op && (
1163 has_cursormoved() 1169 has_cursormoved()
1164 #ifdef FEAT_CONCEAL 1170 #ifdef FEAT_CONCEAL
1165 || curwin->w_p_cole > 0 1171 || curwin->w_p_cole > 0