diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2021-07-09 15:10:49 +0200 |
---|---|---|
committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-07-09 15:36:07 +0200 |
commit | ff53c5585f46bed9622bd4a3071c8cf3db96a9ac (patch) | |
tree | d2f172e88748cf248be97dc0a4e5218d9ca71eec /src/nvim/ex_docmd.c | |
parent | 9132b76da6c22bdd96af62113ff23e408fcc2ae7 (diff) | |
download | rneovim-ff53c5585f46bed9622bd4a3071c8cf3db96a9ac.tar.gz rneovim-ff53c5585f46bed9622bd4a3071c8cf3db96a9ac.tar.bz2 rneovim-ff53c5585f46bed9622bd4a3071c8cf3db96a9ac.zip |
refactor(undo): don't assume curbuf in u_compute_hash
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index bec96bea15..83472fe146 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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". |