Re: [patch] undofile()
- Christian Brabandt wrote:
> here is a patch, that makes undofile() return an empty string, if givenThanks. I'll add this to the todo list.
> an empty string. Consider this:
> vim -u NONE -U NONE -N -c ':set undofile|echo undofile(@%)'
> this returns something like this:
> (/home/chrisbra is my $HOME), even though I think, when giving an empty
> string as argument undofile() should return an empty string.
> So this is what the following patch does. I refrained from patching
> FullName_save() because I don't know if this function should return
> NULL, if given an empty argument, so I only make f_undofile() check for
> the empty string.
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php