Re: vim7 current cvs build: synID

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: vim7 current cvs build: synID

Bram Moolenaar

Johnny Blaze wrote:

> synID() seems to be broken.
>
> :help
> position the cursor within *help.txt* -- which matches helpHyperTextEntry i=
> n=20
> syntax/help.vim
> :echo synID(line("."), col("."), 0)
> 0
> :echo synID(line("."), col("."), 1)
> 0
> :echo synIDattr(synID(line("."), col("."), 0),"name")
> <<nothing is echo'd>>
> :echo synIDattr(synID(line("."), col("."), 1),"name")
> <<nothing is echo'd>>

I fixed it already:

Index: eval.c
===================================================================
RCS file: /cvsroot/vim/vim7/src/eval.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- eval.c 13 Jun 2005 22:28:56 -0000 1.70
+++ eval.c 17 Jun 2005 22:03:40 -0000 1.71
@@ -13459,7 +13452,7 @@
     long lnum;
     long col;
     int trans;
-    int transerr;
+    int transerr = FALSE;
 
     lnum = get_tv_lnum(argvars); /* -1 on type error */
     col = get_tv_number(&argvars[1]) - 1; /* -1 on type error */

--
From "know your smileys":
 <|-) Chinese
 <|-( Chinese and doesn't like these kind of jokes

 /// Bram Moolenaar -- [hidden email] -- 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   ///