Mercurial > vim
comparison src/term.c @ 20776:7728e309e013 v8.2.0940
patch 8.2.0940: build failure with tiny features
Commit: https://github.com/vim/vim/commit/0ca8b5ba7ba72d739ee15d0d6534aa20f863f3c3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 9 21:35:36 2020 +0200
patch 8.2.0940: build failure with tiny features
Problem: Build failure with tiny features.
Solution: Add #ifdef. Add UNUSED. A bit more cleaning up.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 Jun 2020 21:45:03 +0200 |
parents | 10535993e913 |
children | 6d5e233bac9c |
comparison
equal
deleted
inserted
replaced
20775:7ea49c0a73c2 | 20776:7728e309e013 |
---|---|
4382 } | 4382 } |
4383 } | 4383 } |
4384 return new_slen; | 4384 return new_slen; |
4385 } | 4385 } |
4386 | 4386 |
4387 #ifdef FEAT_TERMRESPONSE | |
4388 /* | |
4389 * Handle a cursor position report. | |
4390 */ | |
4387 static void | 4391 static void |
4388 handle_u7_response(int *arg, char_u *tp, int csi_len) | 4392 handle_u7_response(int *arg, char_u *tp UNUSED, int csi_len UNUSED) |
4389 { | 4393 { |
4390 if (arg[0] == 2 && arg[1] >= 2) | 4394 if (arg[0] == 2 && arg[1] >= 2) |
4391 { | 4395 { |
4392 char *aw = NULL; | 4396 char *aw = NULL; |
4393 | 4397 |
4401 if (aw != NULL && STRCMP(aw, p_ambw) != 0) | 4405 if (aw != NULL && STRCMP(aw, p_ambw) != 0) |
4402 { | 4406 { |
4403 // Setting the option causes a screen redraw. Do | 4407 // Setting the option causes a screen redraw. Do |
4404 // that right away if possible, keeping any | 4408 // that right away if possible, keeping any |
4405 // messages. | 4409 // messages. |
4406 set_option_value((char_u *)"ambw", 0L, | 4410 set_option_value((char_u *)"ambw", 0L, (char_u *)aw, 0); |
4407 (char_u *)aw, 0); | |
4408 # ifdef DEBUG_TERMRESPONSE | 4411 # ifdef DEBUG_TERMRESPONSE |
4409 { | 4412 { |
4410 int r = redraw_asap(CLEAR); | 4413 int r = redraw_asap(CLEAR); |
4411 | 4414 |
4412 log_tr("set 'ambiwidth', redraw_asap(): %d", r); | 4415 log_tr("set 'ambiwidth', redraw_asap(): %d", r); |
5027 LOG_TR(("not enough characters for XT")); | 5030 LOG_TR(("not enough characters for XT")); |
5028 return FAIL; | 5031 return FAIL; |
5029 } | 5032 } |
5030 return OK; | 5033 return OK; |
5031 } | 5034 } |
5035 #endif // FEAT_TERMRESPONSE | |
5032 | 5036 |
5033 /* | 5037 /* |
5034 * Check if typebuf.tb_buf[] contains a terminal key code. | 5038 * Check if typebuf.tb_buf[] contains a terminal key code. |
5035 * Check from typebuf.tb_buf[typebuf.tb_off] to typebuf.tb_buf[typebuf.tb_off | 5039 * Check from typebuf.tb_buf[typebuf.tb_off] to typebuf.tb_buf[typebuf.tb_off |
5036 * + "max_offset"]. | 5040 * + "max_offset"]. |