diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-05-01 14:00:13 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-01 14:00:31 -0400 |
commit | 1b5217687abf8e1aeabaf4e5a64073177d56e593 (patch) | |
tree | ce4bac12fff08088724bee38bee9d96d33bfe416 /src/digraph.c | |
parent | 3b77a62a77970a1c1aff5d50df396171ce24b464 (diff) | |
download | rneovim-1b5217687abf8e1aeabaf4e5a64073177d56e593.tar.gz rneovim-1b5217687abf8e1aeabaf4e5a64073177d56e593.tar.bz2 rneovim-1b5217687abf8e1aeabaf4e5a64073177d56e593.zip |
revert #652
reverting broad cosmetic/style change because:
- increases merge-conflicts
- increases overhead of merging upstream Vim patches
- reasons for change are ambiguous, so default to no change
Diffstat (limited to 'src/digraph.c')
-rw-r--r-- | src/digraph.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/digraph.c b/src/digraph.c index f4f8e2a711..88f183be4f 100644 --- a/src/digraph.c +++ b/src/digraph.c @@ -1400,7 +1400,7 @@ static digr_T digraphdefault[] = { 'u', '^', 251 }, // û { 'y', '"', 255 }, // x XX - { '\0', '\0', '\0' } + { NUL, NUL, NUL } }; /// handle digraphs after typing a character @@ -1469,7 +1469,7 @@ int get_digraph(int cmdline) return getdigraph(c, cc, TRUE); } } - return '\0'; + return NUL; } /// Lookup the pair "char1", "char2" in the digraph tables. @@ -1579,10 +1579,10 @@ void putdigraph(char_u *str) int i; digr_T *dp; - while (*str != '\0') { + while (*str != NUL) { str = skipwhite(str); - if (*str == '\0') { + if (*str == NUL) { return; } char1 = *str++; @@ -1637,7 +1637,7 @@ void listdigraphs(void) dp = digraphdefault; - for (i = 0; dp->char1 != '\0' && !got_int; ++i) { + for (i = 0; dp->char1 != NUL && !got_int; ++i) { digr_T tmp; // May need to convert the result to 'encoding'. @@ -1731,7 +1731,7 @@ char_u* keymap_init(void) { curbuf->b_kmap_state &= ~KEYMAP_INIT; - if (*curbuf->b_p_keymap == '\0') { + if (*curbuf->b_p_keymap == NUL) { // Stop any active keymap and clear the table. Also remove // b:keymap_name, as no keymap is active now. keymap_unload(); @@ -1808,7 +1808,7 @@ void ex_loadkeymap(exarg_T *eap) p = skipwhite(line); - if ((*p != '"') && (*p != '\0')) { + if ((*p != '"') && (*p != NUL)) { ga_grow(&curbuf->b_kmap_ga, 1); kp = (kmap_T *)curbuf->b_kmap_ga.ga_data + curbuf->b_kmap_ga.ga_len; s = skiptowhite(p); @@ -1820,9 +1820,9 @@ void ex_loadkeymap(exarg_T *eap) if ((kp->from == NULL) || (kp->to == NULL) || (STRLEN(kp->from) + STRLEN(kp->to) >= KMAP_LLEN) - || (*kp->from == '\0') - || (*kp->to == '\0')) { - if ((kp->to != NULL) && (*kp->to == '\0')) { + || (*kp->from == NUL) + || (*kp->to == NUL)) { + if ((kp->to != NULL) && (*kp->to == NUL)) { EMSG(_("E791: Empty keymap entry")); } vim_free(kp->from); |