diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-12 18:23:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-12 18:23:53 +0100 |
commit | b5aedf3e228d35821591da9ae8501b61cf2e264c (patch) | |
tree | 39cdf29566db1e5ed8b2235d2b0240c859163bd8 /src/undo.c | |
parent | 8774845ce1a7def122ea07c057a79417f3be3d17 (diff) | |
download | vim-git-b5aedf3e228d35821591da9ae8501b61cf2e264c.tar.gz |
patch 8.0.0448: some macros are in lower casev8.0.0448
Problem: Some macros are in lower case, which can be confusing.
Solution: Make a few lower case macros upper case.
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c index 5b953795e..833deca87 100644 --- a/src/undo.c +++ b/src/undo.c @@ -2784,7 +2784,7 @@ u_undoredo(int undo) curhead->uh_entry = newlist; curhead->uh_flags = new_flags; - if ((old_flags & UH_EMPTYBUF) && bufempty()) + if ((old_flags & UH_EMPTYBUF) && BUFEMPTY()) curbuf->b_ml.ml_flags |= ML_EMPTY; if (old_flags & UH_CHANGED) changed(); @@ -3175,14 +3175,14 @@ u_find_first_changed(void) if (STRCMP(ml_get_buf(curbuf, lnum, FALSE), uep->ue_array[lnum - 1]) != 0) { - clearpos(&(uhp->uh_cursor)); + CLEAR_POS(&(uhp->uh_cursor)); uhp->uh_cursor.lnum = lnum; return; } if (curbuf->b_ml.ml_line_count != uep->ue_size) { /* lines added or deleted at the end, put the cursor there */ - clearpos(&(uhp->uh_cursor)); + CLEAR_POS(&(uhp->uh_cursor)); uhp->uh_cursor.lnum = lnum; } } |