comparison src/option.c @ 12865:ebb4f6c93598 v8.0.1309

patch 8.0.1309: cannot use 'balloonexpr' in a terminal commit https://github.com/vim/vim/commit/51b0f3701ecb440aa72ab6017c1df6940c0e0f6f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 18 18:52:04 2017 +0100 patch 8.0.1309: cannot use 'balloonexpr' in a terminal Problem: Cannot use 'balloonexpr' in a terminal. Solution: Add 'balloonevalterm' and add code to handle mouse movements in a terminal. Initial implementation for Unix with GUI.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Nov 2017 19:00:06 +0100
parents 79a754456110
children 1a450ce6980c
comparison
equal deleted inserted replaced
12864:e98532b79dba 12865:ebb4f6c93598
634 #endif 634 #endif
635 SCRIPTID_INIT}, 635 SCRIPTID_INIT},
636 {"ballooneval", "beval",P_BOOL|P_VI_DEF|P_NO_MKRC, 636 {"ballooneval", "beval",P_BOOL|P_VI_DEF|P_NO_MKRC,
637 #ifdef FEAT_BEVAL 637 #ifdef FEAT_BEVAL
638 (char_u *)&p_beval, PV_NONE, 638 (char_u *)&p_beval, PV_NONE,
639 {(char_u *)FALSE, (char_u *)0L}
640 #else
641 (char_u *)NULL, PV_NONE,
642 {(char_u *)0L, (char_u *)0L}
643 #endif
644 SCRIPTID_INIT},
645 {"balloonevalterm", "bevalterm",P_BOOL|P_VI_DEF|P_NO_MKRC,
646 #ifdef FEAT_BEVALTERM
647 (char_u *)&p_bevalterm, PV_NONE,
639 {(char_u *)FALSE, (char_u *)0L} 648 {(char_u *)FALSE, (char_u *)0L}
640 #else 649 #else
641 (char_u *)NULL, PV_NONE, 650 (char_u *)NULL, PV_NONE,
642 {(char_u *)0L, (char_u *)0L} 651 {(char_u *)0L, (char_u *)0L}
643 #endif 652 #endif
8421 } 8430 }
8422 8431
8423 #ifdef FEAT_BEVAL 8432 #ifdef FEAT_BEVAL
8424 else if ((int *)varp == &p_beval) 8433 else if ((int *)varp == &p_beval)
8425 { 8434 {
8426 if (p_beval && !old_value) 8435 if (!balloonEvalForTerm)
8427 gui_mch_enable_beval_area(balloonEval); 8436 {
8428 else if (!p_beval && old_value) 8437 if (p_beval && !old_value)
8429 gui_mch_disable_beval_area(balloonEval); 8438 gui_mch_enable_beval_area(balloonEval);
8430 } 8439 else if (!p_beval && old_value)
8431 #endif 8440 gui_mch_disable_beval_area(balloonEval);
8441 }
8442 }
8443 #endif
8444 # ifdef FEAT_BEVALTERM
8445 else if ((int *)varp == &p_bevalterm)
8446 {
8447 mch_bevalterm_changed();
8448 }
8449 # endif
8432 8450
8433 #ifdef FEAT_AUTOCHDIR 8451 #ifdef FEAT_AUTOCHDIR
8434 else if ((int *)varp == &p_acd) 8452 else if ((int *)varp == &p_acd)
8435 { 8453 {
8436 /* Change directories when the 'acd' option is set now. */ 8454 /* Change directories when the 'acd' option is set now. */