diff options
author | Christian Brabandt <cb@256bit.org> | 2024-02-15 20:17:37 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-15 20:17:37 +0100 |
commit | 9071ed8107244e0c56a16b77d1c28e975cb21dd2 (patch) | |
tree | 81dbf77196eba6af7b99de1785d7e2b5b4dfda68 /src/proto | |
parent | f0d3d4a42657dca996e790aa829de3c6be7fdb63 (diff) |
patch 9.1.0113: duplicate code when cleaning undo stackv9.1.0113
Problem: duplicate code when cleaning undo stack
Solution: refactor undo cleanup into a single public function
related: #13928
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/undo.pro | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/proto/undo.pro b/src/proto/undo.pro index 851d281f30..619ad70234 100644 --- a/src/proto/undo.pro +++ b/src/proto/undo.pro @@ -18,10 +18,9 @@ void ex_undojoin(exarg_T *eap); void u_unchanged(buf_T *buf); void u_find_first_changed(void); void u_update_save_nr(buf_T *buf); -void u_clearall(buf_T *buf); void u_clearline(void); void u_undoline(void); -void u_blockfree(buf_T *buf); +void u_clearallandblockfree(buf_T *buf); int bufIsChanged(buf_T *buf); int anyBufIsChanged(void); int bufIsChangedNotTerm(buf_T *buf); |