]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4827: typo in variable name v8.2.4827
authorBram Moolenaar <Bram@vim.org>
Mon, 25 Apr 2022 17:59:25 +0000 (18:59 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 25 Apr 2022 17:59:25 +0000 (18:59 +0100)
Problem:    Typo in variable name. (Gabriel Dupras)
Solution:   Rename the variable.

src/map.c
src/version.c

index c7de5a15a68bb639df151439eeeb5bf134a5ac40..ea7567e8d56f7cc7c440101c5e8eb2d1ab9951a5 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -508,7 +508,7 @@ do_map(
     {
        int     did_it = FALSE;
        int     did_local = FALSE;
-       int     keyround1_simplfied = keyround == 1 && did_simplify;
+       int     keyround1_simplified = keyround == 1 && did_simplify;
        int     round;
        int     hash;
        int     new_hash;
@@ -726,7 +726,7 @@ do_map(
                                    mpp = &(mp->m_next);
                                    continue;
                                }
-                               if (keyround1_simplfied && !mp->m_simplified)
+                               if (keyround1_simplified && !mp->m_simplified)
                                    break;
                                // We reset the indicated mode bits. If nothing
                                // is left the entry is deleted below.
@@ -779,7 +779,7 @@ do_map(
                                    mp->m_nowait = nowait;
                                    mp->m_silent = silent;
                                    mp->m_mode = mode;
-                                   mp->m_simplified = keyround1_simplfied;
+                                   mp->m_simplified = keyround1_simplified;
 #ifdef FEAT_EVAL
                                    mp->m_expr = expr;
                                    mp->m_script_ctx = current_sctx;
@@ -817,7 +817,7 @@ do_map(
            // delete entry
            if (!did_it)
            {
-               if (!keyround1_simplfied)
+               if (!keyround1_simplified)
                    retval = 2;         // no match
            }
            else if (*keys == Ctrl_C)
@@ -853,7 +853,7 @@ do_map(
 #ifdef FEAT_EVAL
                    expr, /* sid */ -1, /* scriptversion */ 0, /* lnum */ 0,
 #endif
-                   keyround1_simplfied) == FAIL)
+                   keyround1_simplified) == FAIL)
        {
            retval = 4;     // no mem
            goto theend;
index 8017f830b8d23ba92aa45838a55693c564de6fde..2998d2d360349129a00bf817813b177c1793343e 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4827,
 /**/
     4826,
 /**/