comparison src/term.c @ 17781:04245f071792 v8.1.1887

patch 8.1.1887: the +cmdline_compl feature is not in the tiny version commit https://github.com/vim/vim/commit/0a52df50a0e8fce6f5e0eb5f5373dcd0fa24d83a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 18 22:26:31 2019 +0200 patch 8.1.1887: the +cmdline_compl feature is not in the tiny version Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Aug 2019 22:30:04 +0200
parents 6cf077f59152
children 0f7ae8010787
comparison
equal deleted inserted replaced
17780:a65bba9901de 17781:04245f071792
4297 if (termcodes[i].name[0] == name[0] && termcodes[i].name[1] == name[1]) 4297 if (termcodes[i].name[0] == name[0] && termcodes[i].name[1] == name[1])
4298 return termcodes[i].code; 4298 return termcodes[i].code;
4299 return NULL; 4299 return NULL;
4300 } 4300 }
4301 4301
4302 #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
4303 char_u * 4302 char_u *
4304 get_termcode(int i) 4303 get_termcode(int i)
4305 { 4304 {
4306 if (i >= tc_len) 4305 if (i >= tc_len)
4307 return NULL; 4306 return NULL;
4308 return &termcodes[i].name[0]; 4307 return &termcodes[i].name[0];
4309 } 4308 }
4310 #endif
4311 4309
4312 void 4310 void
4313 del_termcode(char_u *name) 4311 del_termcode(char_u *name)
4314 { 4312 {
4315 int i; 4313 int i;
6698 --no_mapping; 6696 --no_mapping;
6699 --allow_keys; 6697 --allow_keys;
6700 } 6698 }
6701 #endif 6699 #endif
6702 6700
6703 #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
6704 /* 6701 /*
6705 * Translate an internal mapping/abbreviation representation into the 6702 * Translate an internal mapping/abbreviation representation into the
6706 * corresponding external one recognized by :map/:abbrev commands. 6703 * corresponding external one recognized by :map/:abbrev commands.
6707 * Respects the current B/k/< settings of 'cpoption'. 6704 * Respects the current B/k/< settings of 'cpoption'.
6708 * 6705 *
6773 ga_append(&ga, c); 6770 ga_append(&ga, c);
6774 } 6771 }
6775 ga_append(&ga, NUL); 6772 ga_append(&ga, NUL);
6776 return (char_u *)(ga.ga_data); 6773 return (char_u *)(ga.ga_data);
6777 } 6774 }
6778 #endif
6779 6775
6780 #if (defined(MSWIN) && (!defined(FEAT_GUI) || defined(VIMDLL))) || defined(PROTO) 6776 #if (defined(MSWIN) && (!defined(FEAT_GUI) || defined(VIMDLL))) || defined(PROTO)
6781 static char ksme_str[20]; 6777 static char ksme_str[20];
6782 static char ksmr_str[20]; 6778 static char ksmr_str[20];
6783 static char ksmd_str[20]; 6779 static char ksmd_str[20];