aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c
index 305bf6b7c9..9ed9e4de59 100644
--- a/src/window.c
+++ b/src/window.c
@@ -185,7 +185,7 @@ newwindow:
/* window height */
vim_snprintf((char *)cbuf, sizeof(cbuf) - 5, "%" PRId64, (int64_t)Prenum);
else
- cbuf[0] = NUL;
+ cbuf[0] = '\0';
if (nchar == 'v' || nchar == Ctrl_V)
STRCAT(cbuf, "v");
STRCAT(cbuf, "new");
@@ -418,7 +418,7 @@ newwindow:
/* Execute the command right here, required when
* "wincmd ]" was used in a function. */
- do_nv_ident(Ctrl_RSB, NUL);
+ do_nv_ident(Ctrl_RSB, '\0');
break;
/* edit file name under cursor in a new window */
@@ -487,7 +487,7 @@ wingotofile:
#endif
++ no_mapping;
++allow_keys; /* no mapping for xchar, but allow key codes */
- if (xchar == NUL)
+ if (xchar == '\0')
xchar = plain_vgetc();
LANGMAP_ADJUST(xchar, TRUE);
--no_mapping;
@@ -4791,9 +4791,9 @@ file_name_in_line (
* search forward for what could be the start of a file name
*/
ptr = line + col;
- while (*ptr != NUL && !vim_isfilec(*ptr))
+ while (*ptr != '\0' && !vim_isfilec(*ptr))
mb_ptr_adv(ptr);
- if (*ptr == NUL) { /* nothing found */
+ if (*ptr == '\0') { /* nothing found */
if (options & FNAME_MESS)
EMSG(_("E446: No file name under cursor"));
return NULL;
@@ -4839,7 +4839,7 @@ file_name_in_line (
/* Get the number after the file name and a separator character */
p = ptr + len;
p = skipwhite(p);
- if (*p != NUL) {
+ if (*p != '\0') {
if (!isdigit(*p))
++p; /* skip the separator */
p = skipwhite(p);
@@ -5224,7 +5224,7 @@ int match_add(win_T *wp, char_u *grp, char_u *pat, int prio, int id)
int hlg_id;
regprog_T *regprog;
- if (*grp == NUL || *pat == NUL)
+ if (*grp == '\0' || *pat == '\0')
return -1;
if (id < -1 || id == 0) {
EMSGN("E799: Invalid ID: %" PRId64