Mercurial > vim
diff src/undo.c @ 26532:255bc9a08e58 v8.2.3795
patch 8.2.3795: too many #ifdefs
Commit: https://github.com/vim/vim/commit/739f13a55b4982efb37ebc9282e7f79975fff982
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 13 13:12:53 2021 +0000
patch 8.2.3795: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the jumplist feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Dec 2021 14:15:03 +0100 |
parents | 560132056b97 |
children | 7f150a4936f2 |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -240,7 +240,7 @@ u_save_cursor(void) /* * Save the lines between "top" and "bot" for both the "u" and "U" command. - * "top" may be 0 and bot may be curbuf->b_ml.ml_line_count + 1. + * "top" may be 0 and "bot" may be curbuf->b_ml.ml_line_count + 1. * Careful: may trigger autocommands that reload the buffer. * Returns FAIL when lines could not be saved, OK otherwise. */ @@ -497,10 +497,8 @@ u_savecommon( */ if (curbuf->b_u_synced) { -#ifdef FEAT_JUMPLIST // Need to create new entry in b_changelist. curbuf->b_new_change = TRUE; -#endif if (get_undolevel() >= 0) {