0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0137

This commit is contained in:
Bram Moolenaar
2005-08-25 21:27:31 +00:00
parent 955295684b
commit 81f1ecbc4d
14 changed files with 7329 additions and 71 deletions

View File

@@ -5992,7 +5992,8 @@ get_syntax_name(xp, idx)
* Function called for expression evaluation: get syntax ID at file position.
*/
int
syn_get_id(lnum, col, trans, spellp)
syn_get_id(wp, lnum, col, trans, spellp)
win_T *wp;
long lnum;
colnr_T col;
int trans; /* remove transparancy */
@@ -6000,10 +6001,10 @@ syn_get_id(lnum, col, trans, spellp)
{
/* 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
if (wp->w_buffer != syn_buf
|| lnum != current_lnum
|| col < current_col)
syntax_start(curwin, lnum);
syntax_start(wp, lnum);
(void)get_syntax_attr(col, spellp);