To: vim_dev@googlegroups.com Subject: Patch 8.2.0940 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0940 (after 8.2.0939) Problem: Build failure with tiny features. Solution: Add #ifdef. Add UNUSED. A bit more cleaning up. Files: src/term.c *** ../vim-8.2.0939/src/term.c 2020-06-09 21:26:32.664039803 +0200 --- src/term.c 2020-06-09 21:32:45.238747868 +0200 *************** *** 4384,4391 **** return new_slen; } static void ! handle_u7_response(int *arg, char_u *tp, int csi_len) { if (arg[0] == 2 && arg[1] >= 2) { --- 4384,4395 ---- return new_slen; } + #ifdef FEAT_TERMRESPONSE + /* + * Handle a cursor position report. + */ static void ! handle_u7_response(int *arg, char_u *tp UNUSED, int csi_len UNUSED) { if (arg[0] == 2 && arg[1] >= 2) { *************** *** 4403,4410 **** // 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); # ifdef DEBUG_TERMRESPONSE { int r = redraw_asap(CLEAR); --- 4407,4413 ---- // 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); # ifdef DEBUG_TERMRESPONSE { int r = redraw_asap(CLEAR); *************** *** 5029,5034 **** --- 5032,5038 ---- } return OK; } + #endif // FEAT_TERMRESPONSE /* * Check if typebuf.tb_buf[] contains a terminal key code. *** ../vim-8.2.0939/src/version.c 2020-06-09 21:26:32.664039803 +0200 --- src/version.c 2020-06-09 21:35:26.270440739 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 940, /**/ -- Why doesn't Tarzan have a beard? /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///