0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

updated for version 7.0210

This commit is contained in:
Bram Moolenaar
2006-03-01 00:01:28 +00:00
parent 03f4855fc2
commit e224ffa156
18 changed files with 194 additions and 107 deletions

View File

@@ -844,6 +844,28 @@ u_sync()
}
}
/*
* ":undojoin": continue adding to the last entry list
*/
/*ARGSUSED*/
void
ex_undojoin(eap)
exarg_T *eap;
{
if (!curbuf->b_u_synced)
return; /* already unsynced */
if (curbuf->b_u_newhead == NULL)
return; /* nothing changed before */
if (p_ul < 0)
return; /* no entries, nothing to do */
else
{
/* Go back to the last entry */
curbuf->b_u_curhead = curbuf->b_u_newhead;
curbuf->b_u_synced = FALSE; /* no entries, nothing to do */
}
}
/*
* Called after writing the file and setting b_changed to FALSE.
* Now an undo means that the buffer is modified.