aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui
diff options
context:
space:
mode:
authorJames Tirta Halim <tirtajames45@gmail.com>2024-06-03 11:10:30 +0700
committerLewis Russell <me@lewisr.dev>2024-06-04 09:42:19 +0100
commit200e7ad1578619e78c664bd0c6be024168433412 (patch)
treec2387df2811637efb1f743693ed6b8ca172aeb74 /src/nvim/tui
parent4b3845be2e497f96f855782d52dd1d02a4cabb6f (diff)
downloadrneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.gz
rneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.bz2
rneovim-200e7ad1578619e78c664bd0c6be024168433412.zip
fixup: apply the change on more files
Diffstat (limited to 'src/nvim/tui')
-rw-r--r--src/nvim/tui/terminfo.c2
-rw-r--r--src/nvim/tui/tui.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tui/terminfo.c b/src/nvim/tui/terminfo.c
index 3cf9650428..657bd6dd10 100644
--- a/src/nvim/tui/terminfo.c
+++ b/src/nvim/tui/terminfo.c
@@ -35,7 +35,7 @@ bool terminfo_is_term_family(const char *term, const char *family)
// 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]);
+ && (NUL == term[flen] || '-' == term[flen] || '.' == term[flen]);
}
bool terminfo_is_bsd_console(const char *term)
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index dc8c8def5b..650133e6a2 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -2508,7 +2508,7 @@ static const char *tui_get_stty_erase(int fd)
struct termios t;
if (tcgetattr(fd, &t) != -1) {
stty_erase[0] = (char)t.c_cc[VERASE];
- stty_erase[1] = '\0';
+ stty_erase[1] = NUL;
DLOG("stty/termios:erase=%s", stty_erase);
}
#endif