mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
undo: Do some refactoring
Specifically refactor u_get_undo_file_name which will be modified to automatically create undo directory and replace `char_u` with `char` in some of the related functions.
This commit is contained in:
@@ -7193,7 +7193,7 @@ static void ex_wundo(exarg_T *eap)
|
||||
char_u hash[UNDO_HASH_SIZE];
|
||||
|
||||
u_compute_hash(hash);
|
||||
u_write_undo(eap->arg, eap->forceit, curbuf, hash);
|
||||
u_write_undo((char *) eap->arg, eap->forceit, curbuf, hash);
|
||||
}
|
||||
|
||||
static void ex_rundo(exarg_T *eap)
|
||||
@@ -7201,7 +7201,7 @@ static void ex_rundo(exarg_T *eap)
|
||||
char_u hash[UNDO_HASH_SIZE];
|
||||
|
||||
u_compute_hash(hash);
|
||||
u_read_undo(eap->arg, hash, NULL);
|
||||
u_read_undo((char *) eap->arg, hash, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user