Skip to content

Commit

Permalink
updated for version 7.4.493
Browse files Browse the repository at this point in the history
Problem:    A TextChanged autocommand is triggered when saving a file.
            (William Gardner)
Solution:   Update last_changedtick after calling unchanged(). (Christian
            Brabandt)
  • Loading branch information
brammool committed Oct 31, 2014
1 parent 2f31e39 commit 086329d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fileio.c
Expand Up @@ -4877,6 +4877,13 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
)
{
unchanged(buf, TRUE);
#ifdef FEAT_AUTOCMD
/* buf->b_changedtick is always incremented in unchanged() but that
* should not trigger a TextChanged event. */
if (last_changedtick + 1 == buf->b_changedtick
&& last_changedtick_buf == buf)
last_changedtick = buf->b_changedtick;
#endif
u_unchanged(buf);
u_update_save_nr(buf);
}
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -741,6 +741,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
493,
/**/
492,
/**/
Expand Down

0 comments on commit 086329d

Please sign in to comment.