comparison 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
comparison
equal deleted inserted replaced
26531:b8398b0fb0ed 26532:255bc9a08e58
238 (linenr_T)(curwin->w_cursor.lnum + 1))); 238 (linenr_T)(curwin->w_cursor.lnum + 1)));
239 } 239 }
240 240
241 /* 241 /*
242 * Save the lines between "top" and "bot" for both the "u" and "U" command. 242 * Save the lines between "top" and "bot" for both the "u" and "U" command.
243 * "top" may be 0 and bot may be curbuf->b_ml.ml_line_count + 1. 243 * "top" may be 0 and "bot" may be curbuf->b_ml.ml_line_count + 1.
244 * Careful: may trigger autocommands that reload the buffer. 244 * Careful: may trigger autocommands that reload the buffer.
245 * Returns FAIL when lines could not be saved, OK otherwise. 245 * Returns FAIL when lines could not be saved, OK otherwise.
246 */ 246 */
247 int 247 int
248 u_save(linenr_T top, linenr_T bot) 248 u_save(linenr_T top, linenr_T bot)
495 /* 495 /*
496 * If curbuf->b_u_synced == TRUE make a new header. 496 * If curbuf->b_u_synced == TRUE make a new header.
497 */ 497 */
498 if (curbuf->b_u_synced) 498 if (curbuf->b_u_synced)
499 { 499 {
500 #ifdef FEAT_JUMPLIST
501 // Need to create new entry in b_changelist. 500 // Need to create new entry in b_changelist.
502 curbuf->b_new_change = TRUE; 501 curbuf->b_new_change = TRUE;
503 #endif
504 502
505 if (get_undolevel() >= 0) 503 if (get_undolevel() >= 0)
506 { 504 {
507 /* 505 /*
508 * Make a new header entry. Do this first so that we don't mess 506 * Make a new header entry. Do this first so that we don't mess