Mark Goldman wrote:

> Is it incorrect behavior that :tag doesn't jump forward in the tag
> stack when cst is set?  (What currently happens is vim produces an
> error message saying useage is cstag <ident> )
> 
> If this is incorrect, the following patch will make :tag behave the
> same with or without cst set.

Makes sense to me.

> 
> diff -ru vim71/src/ex_docmd.c vim71-patched/src/ex_docmd.c
> --- vim71/src/ex_docmd.c        2007-05-07 15:49:38.000000000 -0400
> +++ vim71-patched/src/ex_docmd.c        2008-05-30 10:30:19.000000000 -0400
> @@ -9245,11 +9245,15 @@
>                   break;
>         default:                        /* ":tag" */
>  #ifdef FEAT_CSCOPE
> +    if (eap->arg != NULL && strlen((const char *)(eap->arg)) != 0)
> +    {
> +
>                   if (p_cst)
>                   {
>                       do_cstag(eap);
>                       return;
>                   }
> +    }
>  #endif
>                   cmd = DT_TAG;
>                   break;
 
How about doing it this way:

*** ../vim-7.1.305/src/ex_docmd.c       Sun Mar 16 16:02:47 2008
--- src/ex_docmd.c      Fri May 30 21:56:21 2008
***************
*** 9300,9306 ****
                  break;
        default:                        /* ":tag" */
  #ifdef FEAT_CSCOPE
!                 if (p_cst)
                  {
                      do_cstag(eap);
                      return;
--- 9300,9306 ----
                  break;
        default:                        /* ":tag" */
  #ifdef FEAT_CSCOPE
!                 if (p_cst && *eap->arg != NUL)
                  {
                      do_cstag(eap);
                      return;

-- 
Eye have a spelling checker, it came with my PC;
It plainly marks four my revue mistakes I cannot sea.
I've run this poem threw it, I'm sure your please to no,
It's letter perfect in it's weigh, my checker tolled me sew!

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui