From 15d3a83999db590362168d0a1c4c67dbc1f949f6 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 16 Aug 2025 00:00:00 -0400 Subject: [PATCH] vim-patch:8.2.3795: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate the jumplist feature. https://github.com/vim/vim/commit/739f13a55b4982efb37ebc9282e7f79975fff982 Co-authored-by: Bram Moolenaar --- src/nvim/undo.c | 2 +- test/old/testdir/test_jumplist.vim | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 9764f313ee..6f4a6d4ba0 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -248,7 +248,7 @@ int 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. int u_save(linenr_T top, linenr_T bot) diff --git a/test/old/testdir/test_jumplist.vim b/test/old/testdir/test_jumplist.vim index 1feadead60..d49c147a49 100644 --- a/test/old/testdir/test_jumplist.vim +++ b/test/old/testdir/test_jumplist.vim @@ -2,10 +2,6 @@ " Tests for the getjumplist() function func Test_getjumplist() - if !has("jumplist") - return - endif - %bwipe clearjumps call assert_equal([[], 0], getjumplist())