diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-09-14 18:13:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 09:13:34 -0700 |
commit | 0a83017fe95df0290adb98ec6bf457b96a3fab17 (patch) | |
tree | 41362f11095eff22795474e035c5d91d3fb4a7d8 /src/nvim/tui/terminfo.c | |
parent | 516775e9d84c5eda9c1d014ff052132737361d90 (diff) | |
download | rneovim-0a83017fe95df0290adb98ec6bf457b96a3fab17.tar.gz rneovim-0a83017fe95df0290adb98ec6bf457b96a3fab17.tar.bz2 rneovim-0a83017fe95df0290adb98ec6bf457b96a3fab17.zip |
refactor: format files with uncrustify #15663
Diffstat (limited to 'src/nvim/tui/terminfo.c')
-rw-r--r-- | src/nvim/tui/terminfo.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/nvim/tui/terminfo.c b/src/nvim/tui/terminfo.c index ff2a357752..ce48059b94 100644 --- a/src/nvim/tui/terminfo.c +++ b/src/nvim/tui/terminfo.c @@ -5,11 +5,10 @@ #include <stdbool.h> #include <string.h> - #include <unibilium.h> -#include "nvim/log.h" #include "nvim/globals.h" +#include "nvim/log.h" #include "nvim/memory.h" #include "nvim/message.h" #include "nvim/option.h" @@ -29,12 +28,12 @@ bool terminfo_is_term_family(const char *term, const char *family) size_t tlen = strlen(term); size_t flen = strlen(family); return tlen >= flen - && 0 == memcmp(term, family, flen) - // Per commentary in terminfo, minus is the only valid suffix separator. - // The screen terminfo may have a terminal name like screen.xterm. By making - // the dot(.) a valid separator, such terminal names will also be the - // terminal family of the screen. - && ('\0' == term[flen] || '-' == term[flen] || '.' == term[flen]); + && 0 == memcmp(term, family, flen) + // Per commentary in terminfo, minus is the only valid suffix separator. + // The screen terminfo may have a terminal name like screen.xterm. By making + // the dot(.) a valid separator, such terminal names will also be the + // terminal family of the screen. + && ('\0' == term[flen] || '-' == term[flen] || '.' == term[flen]); } bool terminfo_is_bsd_console(const char *term) |