comparison src/gui.c @ 25006:496221916885 v8.2.3040

patch 8.2.3040: GUI: dropping files not tested Commit: https://github.com/vim/vim/commit/18d46587b985923ef4b90b19a0cf37a094607fec Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Jun 23 20:46:52 2021 +0200 patch 8.2.3040: GUI: dropping files not tested Problem: GUI: dropping files not tested. Solution: Add test_gui_drop_files() and tests. (Yegappan Lakshmanan, closes #8434)
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Jun 2021 21:00:03 +0200
parents f8906bd5b277
children 078edc1821bf
comparison
equal deleted inserted replaced
25005:791ae2f86aa4 25006:496221916885
5565 if (count == 1 && (modifiers & MOUSE_SHIFT) != 0 5565 if (count == 1 && (modifiers & MOUSE_SHIFT) != 0
5566 && mch_isdir(fnames[0])) 5566 && mch_isdir(fnames[0]))
5567 { 5567 {
5568 vim_free(fnames[0]); 5568 vim_free(fnames[0]);
5569 vim_free(fnames); 5569 vim_free(fnames);
5570 vim_free(p);
5570 } 5571 }
5571 else 5572 else
5572 handle_drop(count, fnames, (modifiers & MOUSE_CTRL) != 0, 5573 handle_drop(count, fnames, (modifiers & MOUSE_CTRL) != 0,
5573 drop_callback, (void *)p); 5574 drop_callback, (void *)p);
5574 } 5575 }