To: vim-dev@vim.org Subject: patch 5.4.x6 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.4.x6 Problem: Win32: Expanding (dir)name starting with a dot doesn't work. (McCormack) Only when there is a path before it. Solution: Fix the check, done before expansion, if the file name pattern starts with a dot. Files: src/os_win32.c *** ../vim-5.4.35/src/os_win32.c Sat Jul 24 17:46:15 1999 --- src/os_win32.c Wed Aug 18 23:03:54 1999 *************** *** 2664,2670 **** } #endif ! start_dot_ok = (buf[0] == '.' || buf[0] == '*'); /* If we are expanding wildcards, we try both files and directories */ if ((hFind = FindFirstFile(buf, &fb)) != INVALID_HANDLE_VALUE) --- 2664,2670 ---- } #endif ! start_dot_ok = (s[0] == '.' || s[0] == '*'); /* If we are expanding wildcards, we try both files and directories */ if ((hFind = FindFirstFile(buf, &fb)) != INVALID_HANDLE_VALUE) -- hundred-and-one symptoms of being an internet addict: 141. You'd rather go to http://www.weather.com/ than look out your window. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /