Re: [patch] Re: patchmode truncates filename
- On 2002-11-13 09:55:22, Benji Fisher <benji@...> wrote:
> Thank you! If this patch works for me, I will post newI think that the "-5" isn't for the extension, but instead
> binaries soon. (It has been a while...) What is the logic
> behind the definition of BASENAMELEN ? I assume -5 is to allow
> for the extension; it that guaranteed to be enough? Do we not
> need -1 for the "."?
> --Benji Fisher
is used when the leading "." and trailing ".swp" are added
to create the associated swap filename.
R. Edward Ralston <eralston@...>
Experience is what allows you to recognize a mistake the second time
you make it.
- Ed Ralston wrote:
> The following patch fixes a problem with 'patchmode'Thanks, I'll include it.
> truncating long filenames on MacOSX built
> with the Carbon GUI.
How To Keep A Healthy Level Of Insanity:
11. Specify that your drive-through order is "to go".
/// Bram Moolenaar -- Bram@... -- 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 ///
>>> On Tue, 05 Nov 2002 at 11:29:59 -0500, R. Edward Ralston wrote:Sorry, I have lost some of my e-mail. I saved the patch, though,
>>>> "patchmode" appears to be munging long filenames.
>>>> In your shell do:
>>>> touch ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
>>>> vim -u NONE -U NONE ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
>>>> once there, type some text, then
>>>> :set patchmode=.originalfile
and tried it out. I do not have time to explore this more right now,
but here is the strange output of
:let @* = system("ls") :
More strangeness: when I simply do
many of the longer files are not listed.
Details: I got this lovely collection if files by doing
<add a line>
<add a line>