diff src/eval.c @ 254:c50c82c5e230 v7.0069

updated for version 7.0069
author vimboss
date Wed, 20 Apr 2005 19:48:33 +0000
parents 73354c21f1e4
children e7904492cb75
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -12996,7 +12996,7 @@ f_substitute(argvars, rettv)
 }
 
 /*
- * "synID(line, col, trans)" function
+ * "synID(lnum, col, trans)" function
  */
 /*ARGSUSED*/
     static void
@@ -13006,17 +13006,17 @@ f_synID(argvars, rettv)
 {
     int		id = 0;
 #ifdef FEAT_SYN_HL
-    long	line;
+    long	lnum;
     long	col;
     int		trans;
 
-    line = get_tv_lnum(argvars);
+    lnum = get_tv_lnum(argvars);
     col = get_tv_number(&argvars[1]) - 1;
     trans = get_tv_number(&argvars[2]);
 
-    if (line >= 1 && line <= curbuf->b_ml.ml_line_count
-	    && col >= 0 && col < (long)STRLEN(ml_get(line)))
-	id = syn_get_id(line, col, trans);
+    if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count
+	    && col >= 0 && col < (long)STRLEN(ml_get(lnum)))
+	id = syn_get_id(lnum, (colnr_T)col, trans, NULL);
 #endif
 
     rettv->vval.v_number = id;