To: vim-dev@vim.org Subject: patch 5.4p.10 Fcc: outbox From: Bram Moolenaar ------------ Note: This requires that patch 5.4p.9 has been applied. Patch 5.4p.10 Problem: Win32: On top of 5.4p.9: The "Edit with Vim" entry sometimes used a short file name for a directory. Solution: Change the "%1" to "%L" in the registry entry. Files: src/dosinst.c *** src/dosinst.c~ Thu Jul 22 13:31:53 1999 --- src/dosinst.c Thu Jul 22 13:32:00 1999 *************** *** 745,751 **** fprintf(fd, "[HKEY_CLASSES_ROOT\\*\\shell\\Vim]\n"); fprintf(fd, "@=\"Edit with &Vim\"\n\n"); fprintf(fd, "[HKEY_CLASSES_ROOT\\*\\shell\\Vim\\command]\n"); ! fprintf(fd, "@=\"%sgvim.exe \\\"%%1\\\"\"\n", buf); fclose(fd); system("regedit vim.reg"); /* Can't delete the file, because regedit detaches itself, --- 745,751 ---- fprintf(fd, "[HKEY_CLASSES_ROOT\\*\\shell\\Vim]\n"); fprintf(fd, "@=\"Edit with &Vim\"\n\n"); fprintf(fd, "[HKEY_CLASSES_ROOT\\*\\shell\\Vim\\command]\n"); ! fprintf(fd, "@=\"%sgvim.exe \\\"%%L\\\"\"\n", buf); fclose(fd); system("regedit vim.reg"); /* Can't delete the file, because regedit detaches itself, -- hundred-and-one symptoms of being an internet addict: 220. Your wife asks for sex and you tell her where to find you on IRC. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /