]> granicus.if.org Git - vim/commitdiff
patch 8.0.0766: option test fails with +terminal feature v8.0.0766
authorBram Moolenaar <Bram@vim.org>
Mon, 24 Jul 2017 18:03:01 +0000 (20:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 24 Jul 2017 18:03:01 +0000 (20:03 +0200)
Problem:    Option test fails with +terminal feature.
Solution:   Fix using the right option when checking the value.

src/option.c
src/version.c

index 987c5b5dfc1e08afe07f15a6ab37268e20792965..e2dfa88ec1ac3d310dc1777971752f16a387e7d4 100644 (file)
@@ -7465,7 +7465,7 @@ did_set_string_option(
 
 #ifdef FEAT_TERMINAL
     /* 'termkey' */
-    else if (varp == &curwin->w_p_tms)
+    else if (varp == &curwin->w_p_tk)
     {
        if (*curwin->w_p_tk != NUL && string_to_key(curwin->w_p_tk, TRUE) == 0)
            errmsg = e_invarg;
index 34017d131bfda4c1f67eaa4e86197bda515f3ee8..8d698c7aa5775466c3b69310f8c1fc4b7baef65a 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    766,
 /**/
     765,
 /**/