From 0df8f93bdaea77a1afb9f4eca94fe67ec73e6df2 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 7 Mar 2024 21:40:53 +0100 Subject: patch 9.1.0157: Duplicate assignment in f_getregion() Problem: Duplicate assignment in f_getregion(). Solution: Remove the duplicate assignment. Also improve getregion() docs wording and fix an unrelated typo (zeertzjq) closes: #14154 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- src/evalfunc.c | 1 - src/testdir/test_undo.vim | 2 +- src/version.c | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/evalfunc.c b/src/evalfunc.c index 23d5dd3867..2bb9ccec55 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -5546,7 +5546,6 @@ f_getregion(typval_T *argvars, typval_T *rettv) // buffer not loaded if (findbuf == NULL || findbuf->b_ml.ml_mfp == NULL) return; - save_curbuf = curbuf; curbuf = findbuf; } diff --git a/src/testdir/test_undo.vim b/src/testdir/test_undo.vim index 13c4990b8c..eec0e0bc06 100644 --- a/src/testdir/test_undo.vim +++ b/src/testdir/test_undo.vim @@ -583,7 +583,7 @@ funct Test_undofile() endif call assert_equal('', undofile('')) - " Test undofile() with 'undodir' set to to an existing directory. + " Test undofile() with 'undodir' set to an existing directory. call mkdir('Xundodir') set undodir=Xundodir let cwd = getcwd() diff --git a/src/version.c b/src/version.c index 03ad6fe197..86537c4377 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 157, /**/ 156, /**/ -- cgit v1.2.3