diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-22 22:47:12 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-22 23:19:51 +0100 |
commit | 51637f4256353e513f262572bcb786b54d250e11 (patch) | |
tree | 3c65edffb636e5abcb4d08cd5c3c3f71245980e8 /src/nvim/tui/tui.c | |
parent | 8c959be51104fbf2aa01aa09f82df6cec515770c (diff) | |
download | rneovim-51637f4256353e513f262572bcb786b54d250e11.tar.gz rneovim-51637f4256353e513f262572bcb786b54d250e11.tar.bz2 rneovim-51637f4256353e513f262572bcb786b54d250e11.zip |
tui: move terminfo_is_term_family()
Diffstat (limited to 'src/nvim/tui/tui.c')
-rw-r--r-- | src/nvim/tui/tui.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index b447b4aae2..7ff426239a 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -61,20 +61,6 @@ #define UNIBI_SET_NUM_VAR(var, num) (var).i = (num); #endif -// Per the commentary in terminfo, only a minus sign is a true suffix -// separator. -bool terminfo_is_term_family(const char *term, const char *family) -{ - if (!term) { - return false; - } - size_t tlen = strlen(term); - size_t flen = strlen(family); - return tlen >= flen - && 0 == memcmp(term, family, flen) \ - && ('\0' == term[flen] || '-' == term[flen]); -} - typedef struct { int top, bot, left, right; } Rect; |