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

Re: v:fold* variables (bug?)

Expand Messages
  • Bram Moolenaar
    ... Note that this has been implemented for Vim 7. Also for diff mode. ... The v:fold* variables are only set when evaluating foldtext . You are probably
    Message 1 of 3 , Nov 18, 2004
    • 0 Attachment
      Mikolaj Machowski wrote:

      > Read recently on vim-list about 'exporting' folds to html and tried to
      > make something with this idea. One thing isn't easy - detecting of
      > folds.

      Note that this has been implemented for Vim 7. Also for diff mode.

      > Theoretically with v:fold* variables and foldlevel option it should be
      > easy but...
      >
      > In help is that v:fold* variables should return values for 'closed
      > fold'. What does that mean?
      >
      > They are routinely returning values for various folds.

      The v:fold* variables are only set when evaluating 'foldtext'. You are
      probably seeing old values.

      --
      Witches prefer brooms: vacuum-cleaners need extension cords!

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.