summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-04-20 19:45:58 +0000
committerBram Moolenaar <Bram@vim.org>2005-04-20 19:45:58 +0000
commit9d0ec2e49a83161f0c75e87381ba1499bc21ecbc (patch)
treef8a87f47a44ba98eaf55710b81f53464786d4a49 /src
parent1f74d98357e0f52a25c0ab3125fb875d05ed2721 (diff)
downloadvim-git-9d0ec2e49a83161f0c75e87381ba1499bc21ecbc.tar.gz
updated for version 7.0069
Diffstat (limited to 'src')
-rw-r--r--src/ex_cmds2.c2
-rw-r--r--src/syntax.c11
2 files changed, 6 insertions, 7 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index e4a6a2ac7..4dc0f0cc1 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -4318,7 +4318,7 @@ hardcopy_line(psettings, page_line, ppos)
*/
if (psettings->do_syntax)
{
- id = syn_get_id(ppos->file_line, (long)col, 1);
+ id = syn_get_id(ppos->file_line, col, 1, NULL);
if (id > 0)
id = syn_get_final_id(id);
else
diff --git a/src/syntax.c b/src/syntax.c
index a6741cf17..947ed19f5 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -5929,28 +5929,27 @@ get_syntax_name(xp, idx)
#endif /* FEAT_CMDL_COMPL */
-#if defined(FEAT_EVAL) || defined(FEAT_PRINTER) || defined(PROTO)
/*
* Function called for expression evaluation: get syntax ID at file position.
*/
int
-syn_get_id(lnum, col, trans)
+syn_get_id(lnum, col, trans, spellp)
long lnum;
- long col;
+ colnr_T col;
int trans; /* remove transparancy */
+ int *spellp; /* return: can do spell checking */
{
/* When the position is not after the current position and in the same
* line of the same buffer, need to restart parsing. */
if (curwin->w_buffer != syn_buf
|| lnum != current_lnum
- || col < (long)current_col)
+ || col < current_col)
syntax_start(curwin, lnum);
- (void)get_syntax_attr((colnr_T)col, NULL);
+ (void)get_syntax_attr(col, spellp);
return (trans ? current_trans_id : current_id);
}
-#endif
#if defined(FEAT_FOLDING) || defined(PROTO)
/*