aboutsummaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2014-04-29 21:56:49 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-29 17:51:09 -0300
commit2e4613aecc712eb5e893d341da5f571f932376d5 (patch)
tree41f6b1c751181319d88cc0fdb7aed61bf732701d /src/popupmnu.c
parent046debb9359c85e2f2bc5c6d9481dac0025c6a80 (diff)
downloadrneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.gz
rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.bz2
rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.zip
Remove NUL macro
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index bfb6b693e1..283d6a5e83 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -333,13 +333,13 @@ void pum_redraw(void)
}
w = ptr2cells(p);
- if ((*p == NUL) || (*p == TAB) || (totwidth + w > pum_width)) {
+ if ((*p == '\0') || (*p == TAB) || (totwidth + w > pum_width)) {
// Display the text that fits or comes before a Tab.
// First convert it to printable characters.
char_u *st;
int saved = *p;
- *p = NUL;
+ *p = '\0';
st = transstr(s);
*p = saved;
@@ -573,13 +573,13 @@ static int pum_set_selected(int n, int repeat)
char_u *p, *e;
linenr_T lnum = 0;
- for (p = pum_array[pum_selected].pum_info; *p != NUL;) {
+ for (p = pum_array[pum_selected].pum_info; *p != '\0';) {
e = vim_strchr(p, '\n');
if (e == NULL) {
ml_append(lnum++, p, 0, FALSE);
break;
} else {
- *e = NUL;
+ *e = '\0';
ml_append(lnum++, p, (int)(e - p + 1), FALSE);
*e = '\n';
p = e + 1;