]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0940: build failure with tiny features v8.2.0940
authorBram Moolenaar <Bram@vim.org>
Tue, 9 Jun 2020 19:35:36 +0000 (21:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 9 Jun 2020 19:35:36 +0000 (21:35 +0200)
Problem:    Build failure with tiny features.
Solution:   Add #ifdef.  Add UNUSED.  A bit more cleaning up.

src/term.c
src/version.c

index b0aef2e36ad29a0c77d8d3de997a668abcc18532..0ef0be5f14a5403e0398b3a2567a2cda3ad73776 100644 (file)
@@ -4384,8 +4384,12 @@ modifiers2keycode(int modifiers, int *key, char_u *string)
     return new_slen;
 }
 
+#ifdef FEAT_TERMRESPONSE
+/*
+ * Handle a cursor position report.
+ */
     static void
-handle_u7_response(int *arg, char_u *tp, int csi_len)
+handle_u7_response(int *arg, char_u *tp UNUSED, int csi_len UNUSED)
 {
     if (arg[0] == 2 && arg[1] >= 2)
     {
@@ -4403,8 +4407,7 @@ handle_u7_response(int *arg, char_u *tp, int csi_len)
            // Setting the option causes a screen redraw. Do
            // that right away if possible, keeping any
            // messages.
-           set_option_value((char_u *)"ambw", 0L,
-                            (char_u *)aw, 0);
+           set_option_value((char_u *)"ambw", 0L, (char_u *)aw, 0);
 # ifdef DEBUG_TERMRESPONSE
            {
                int r = redraw_asap(CLEAR);
@@ -5029,6 +5032,7 @@ handle_dcs(char_u *tp, char_u *argp, int len, char_u *key_name, int *slen)
     }
     return OK;
 }
+#endif // FEAT_TERMRESPONSE
 
 /*
  * Check if typebuf.tb_buf[] contains a terminal key code.
index 49a2cf37ab54efa73f1d5c1d188826921d11398c..26073db96b12fd307f6a3b0b4eb0de14560d0836 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    940,
 /**/
     939,
 /**/