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

Re: vim7: change in a:base behaviour?

Expand Messages
  • Bram Moolenaar
    ... +++ edit.c 5 Oct 2005 10:36:04 -0000 @@ -3031,10 +3031,7 @@ #ifdef FEAT_COMPL_FUNC case CTRL_X_FUNCTION: case CTRL_X_OMNI: - if (*compl_pattern == NUL)
    Message 1 of 3 , Oct 5, 2005
    • 0 Attachment
      Mikolaj Machowski wrote:

      > Was something changed in completion function behaviour?
      >
      > Looks like second call of completion function is abandoned when a:base
      > is an empty string. I think this is not right. Previous behaviour was
      > better.
      >
      > For example: in XHTML completion when a:base was empty it was call tu
      > present list of all possible tags.
      >
      > In real programming languages it could be call to present all available
      > functions/variables.

      Right. Patch:

      --- edit.c 3 Oct 2005 22:00:40 -0000 1.39
      +++ edit.c 5 Oct 2005 10:36:04 -0000
      @@ -3031,10 +3031,7 @@
      #ifdef FEAT_COMPL_FUNC
      case CTRL_X_FUNCTION:
      case CTRL_X_OMNI:
      - if (*compl_pattern == NUL)
      - num_matches = 0;
      - else
      - num_matches = expand_by_function(type, compl_pattern, &matches);
      + num_matches = expand_by_function(type, compl_pattern, &matches);
      if (num_matches > 0)
      ins_compl_add_matches(num_matches, matches, dir);
      break;

      --
      ARTHUR: The swallow may fly south with the sun, or the house martin or the
      plover seek warmer hot lands in winter, yet these are not strangers to
      our land.
      SOLDIER: Are you suggesting coconuts migrate?
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// 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 LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
    • Mikolaj Machowski
      ... Thanks. m.
      Message 2 of 3 , Oct 5, 2005
      • 0 Attachment
        Dnia środa, 5 października 2005 13:30, napisałeś:
        > Mikolaj Machowski wrote:
        > > Was something changed in completion function behaviour?
        > >
        > > Looks like second call of completion function is abandoned when a:base
        > > is an empty string. I think this is not right. Previous behaviour was
        > > better.
        > >
        > > For example: in XHTML completion when a:base was empty it was call tu
        > > present list of all possible tags.
        > >
        > > In real programming languages it could be call to present all
        > > available functions/variables.
        >
        > Right. Patch:
        >

        Thanks.

        m.
      Your message has been successfully submitted and would be delivered to recipients shortly.