mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
refactor(undo): don't assume curbuf in u_compute_hash
This commit is contained in:
@@ -8010,16 +8010,16 @@ static void ex_wundo(exarg_T *eap)
|
||||
{
|
||||
char_u hash[UNDO_HASH_SIZE];
|
||||
|
||||
u_compute_hash(hash);
|
||||
u_write_undo((char *) eap->arg, eap->forceit, curbuf, hash);
|
||||
u_compute_hash(curbuf, hash);
|
||||
u_write_undo((char *)eap->arg, eap->forceit, curbuf, hash);
|
||||
}
|
||||
|
||||
static void ex_rundo(exarg_T *eap)
|
||||
{
|
||||
char_u hash[UNDO_HASH_SIZE];
|
||||
|
||||
u_compute_hash(hash);
|
||||
u_read_undo((char *) eap->arg, hash, NULL);
|
||||
u_compute_hash(curbuf, hash);
|
||||
u_read_undo((char *)eap->arg, hash, NULL);
|
||||
}
|
||||
|
||||
/// ":redo".
|
||||
|
Reference in New Issue
Block a user