To: vim-dev@vim.org Subject: Patch 6.1.259 (extra) Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.259 (extra) Problem: Mac: with 'patchmode' is used filenames are truncated. Solution: Increase the BASENAMELEN for Mac OS X. (Ed Ralston) Files: src/os_mac.h *** ../vim61.258/src/os_mac.h Sat Mar 9 16:17:30 2002 --- src/os_mac.h Wed Nov 13 21:47:44 2002 *************** *** 310,318 **** */ #define CMDBUFFSIZE 1024 /* size of the command processing buffer */ ! #define MAXPATHL 256 /* Limited by the Pascal Strings */ ! ! #define BASENAMELEN (32-5-1) /* length of base of filename */ #ifndef DFLT_MAXMEM # define DFLT_MAXMEM 512 /* use up to 512 Kbyte for buffer */ --- 310,322 ---- */ #define CMDBUFFSIZE 1024 /* size of the command processing buffer */ ! #if defined(MACOS_X_UNIX) ! # define MAXPATHL 1024 ! # define BASENAMELEN (MAXNAMLEN - 5) /* length of base of filename */ ! #else ! # define MAXPATHL 256 /* Limited by the Pascal Strings */ ! # define BASENAMELEN (32-5-1) /* length of base of filename */ ! #endif #ifndef DFLT_MAXMEM # define DFLT_MAXMEM 512 /* use up to 512 Kbyte for buffer */ *** ../vim61.258/src/version.c Tue Nov 19 11:46:06 2002 --- src/version.c Tue Nov 19 11:51:34 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 259, /**/ -- hundred-and-one symptoms of being an internet addict: 87. Everyone you know asks why your phone line is always busy ...and you tell them to send an e-mail. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///