Loading ...
Sorry, an error occurred while loading the content.

Re: [patch] undofile()

Expand Messages
  • Bram Moolenaar
    ... Thanks. I ll add this to the todo list. -- To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass
    Message 1 of 2 , Apr 28, 2012
    • 0 Attachment
      Christian Brabandt wrote:

      > here is a patch, that makes undofile() return an empty string, if given
      > an empty string. Consider this:
      > vim -u NONE -U NONE -N -c ':set undofile|echo undofile(@%)'
      > this returns something like this:
      > /home/.chrisbra.un~
      > (/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.

      Thanks. I'll add this to the todo list.

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.