To: vim-dev@vim.org Subject: patch 5.5.065 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.065 Problem: When dropping a file on Vim, the 'shellslash' option is not effective. (Krishna) Solution: Fix the slashes in the dropped file names according to 'shellslash'. Files: src/ex_docmd.c, runtime/doc/options.txt *** ../vim-5.5.64/src/ex_docmd.c Sun Dec 5 20:27:29 1999 --- src/ex_docmd.c Wed Dec 8 12:33:13 1999 *************** *** 5973,5979 **** --- 5973,5984 ---- for (i = 0; i < arg_file_count; ++i) if (arg_files[i] != NULL) + { + #ifdef BACKSLASH_IN_FILENAME + slash_adjust(arg_files[i]); + #endif (void)buflist_add(arg_files[i]); + } /* * Move to the first file. *** ../vim-5.5.64/runtime/doc/options.txt Tue Dec 7 12:51:33 1999 --- runtime/doc/options.txt Wed Dec 8 12:42:35 1999 *************** *** 1,4 **** ! *options.txt* For Vim version 5.5. Last change: 1999 Dec 07 VIM REFERENCE MANUAL by Bram Moolenaar --- 1,4 ---- ! *options.txt* For Vim version 5.5. Last change: 1999 Dec 08 VIM REFERENCE MANUAL by Bram Moolenaar *************** *** 3048,3053 **** --- 3061,3069 ---- useful when a Unix-like shell is used instead of command.com or cmd.exe. Backward slashes can still be typed, but they are changed to forward slashes by Vim. + Note that setting or resetting this option has no effect for existing + file names, thus this option needs to be set before opening any file + for best results. This might change in the future. *'shelltype'* *'st'* 'shelltype' 'st' number (default 0) *** ../vim-5.5.64/src/version.c Wed Dec 8 12:08:02 1999 --- src/version.c Wed Dec 8 12:47:44 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 65, -- GALAHAD: No, please. Please! I can defeat them! There's only a hundred. GIRLS: He will beat us easily. We haven't a chance. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /