diff options
author | ZyX <kp-pav@yandex.ru> | 2015-10-29 01:14:01 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-29 19:34:25 +0300 |
commit | d99941777dbaca1719223961174df5e01b1ac444 (patch) | |
tree | df807de77a8f96acfed19936a3b7eb962b653365 /src/nvim/ex_docmd.c | |
parent | 1af15494c25d1cba9e4da058fc3b958d27d3f890 (diff) | |
download | rneovim-d99941777dbaca1719223961174df5e01b1ac444.tar.gz rneovim-d99941777dbaca1719223961174df5e01b1ac444.tar.bz2 rneovim-d99941777dbaca1719223961174df5e01b1ac444.zip |
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.
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index e160281145..70cf5fd029 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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); } /* |