changeset 11768:8f671deb97b3 v8.0.0766

patch 8.0.0766: option test fails with +terminal feature commit https://github.com/vim/vim/commit/c4f43bce7c43e5fe413e77b66b9805f3354fbb63 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 24 20:03:01 2017 +0200 patch 8.0.0766: option test fails with +terminal feature Problem: Option test fails with +terminal feature. Solution: Fix using the right option when checking the value.
author Christian Brabandt <cb@256bit.org>
date Mon, 24 Jul 2017 20:15:04 +0200
parents b118e9bd0107
children 970948345309
files src/option.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    766,
+/**/
     765,
 /**/
     764,