From e0e41b30c61922e099a067ac5c137e745699a1aa Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 13 Feb 2015 12:06:01 -0300 Subject: ui: Remove/adapt some old code for a big UI refactor - Remove abstract_ui global, now it is always active - Remove some terminal handling code - Remove unused functions - Remove HAVE_TGETENT/TERMINFO/TERMIOS/IOCTL #ifdefs - Remove tgetent/terminfo from version.c - Remove curses/terminfo dependencies - Only start/stop termcap when starting/exiting the program - msg_use_printf will return true if there are no attached UIs( messages will be written to stdout) - Remove `ex_winpos`(implement `:winpos` with `ex_ni`) --- src/nvim/eval.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index a4bd4d89ef..6714dc3822 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -9955,14 +9955,8 @@ static void f_has(typval_T *argvars, typval_T *rettv) #endif "tag_binary", "tag_old_static", -#ifdef TERMINFO - "terminfo", -#endif "termresponse", "textobjects", -#ifdef HAVE_TGETENT - "tgetent", -#endif "title", "user-commands", /* was accidentally included in 5.4 */ "user_commands", @@ -14427,10 +14421,7 @@ static void f_synIDattr(typval_T *argvars, typval_T *rettv) if (modec != 't' && modec != 'c' && modec != 'g') modec = 0; /* replace invalid with current */ } else { - if (abstract_ui || t_colors > 1) - modec = 'c'; - else - modec = 't'; + modec = 'c'; } @@ -18080,21 +18071,6 @@ static int function_exists(char_u *name) return n; } -char_u *get_expanded_name(char_u *name, int check) -{ - char_u *nm = name; - char_u *p; - - p = trans_function_name(&nm, FALSE, TFN_INT|TFN_QUIET, NULL); - - if (p != NULL && *nm == NUL) - if (!check || translated_function_exists(p)) - return p; - - free(p); - return NULL; -} - /// Return TRUE if "name" looks like a builtin function name: starts with a /// lower case letter and doesn't contain AUTOLOAD_CHAR. /// "len" is the length of "name", or -1 for NUL terminated. -- cgit From d8f3458ec745cf56dc692b55cc76d8323dbbfc53 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 13 Feb 2015 12:06:08 -0300 Subject: syntax: Refactor to store all term and gui attributes independently Now the attrentry_T structure will store all attributes in separate fields for cterm and rgb UIs. --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 6714dc3822..97993eb651 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -14418,7 +14418,7 @@ static void f_synIDattr(typval_T *argvars, typval_T *rettv) if (argvars[2].v_type != VAR_UNKNOWN) { mode = get_tv_string_buf(&argvars[2], modebuf); modec = TOLOWER_ASC(mode[0]); - if (modec != 't' && modec != 'c' && modec != 'g') + if (modec != 'c' && modec != 'g') modec = 0; /* replace invalid with current */ } else { modec = 'c'; -- cgit