Mercurial > vim
diff src/ops.c @ 11127:506f5d8b7d8b v8.0.0451
patch 8.0.0451: some macros are in lower case
commit https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 12 19:22:36 2017 +0100
patch 8.0.0451: some macros are in lower case
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Mar 2017 19:30:05 +0100 |
parents | 778c10516955 |
children | f4ea50924c6d |
line wrap: on
line diff
--- a/src/ops.c +++ b/src/ops.c @@ -486,7 +486,7 @@ shift_block(oparg_T *oap, int amount) * the part of which is displayed at the block's beginning. Let's start * searching from the next character. */ if (bd.startspaces) - mb_ptr_adv(non_white); + MB_PTR_ADV(non_white); /* The character's column is in "bd.start_vcol". */ non_white_col = bd.start_vcol; @@ -526,7 +526,7 @@ shift_block(oparg_T *oap, int amount) if (verbatim_copy_width + incr > destination_col) break; verbatim_copy_width += incr; - mb_ptr_adv(verbatim_copy_end); + MB_PTR_ADV(verbatim_copy_end); } /* If "destination_col" is different from the width of the initial @@ -3458,7 +3458,7 @@ do_put( goto end; p = ml_get_cursor(); if (dir == FORWARD && *p != NUL) - mb_ptr_adv(p); + MB_PTR_ADV(p); ptr = vim_strsave(p); if (ptr == NULL) goto end; @@ -3468,7 +3468,7 @@ do_put( oldp = ml_get_curline(); p = oldp + curwin->w_cursor.col; if (dir == FORWARD && *p != NUL) - mb_ptr_adv(p); + MB_PTR_ADV(p); ptr = vim_strnsave(oldp, p - oldp); if (ptr == NULL) goto end; @@ -4489,11 +4489,11 @@ do_join( if (has_mbyte) { cend = curr + currsize; - mb_ptr_back(curr, cend); + MB_PTR_BACK(curr, cend); endcurr1 = (*mb_ptr2char)(cend); if (cend > curr) { - mb_ptr_back(curr, cend); + MB_PTR_BACK(curr, cend); endcurr2 = (*mb_ptr2char)(cend); } } @@ -5262,7 +5262,7 @@ block_prep( } #endif prev_pstart = pstart; - mb_ptr_adv(pstart); + MB_PTR_ADV(pstart); } bdp->start_char_vcols = incr; if (bdp->start_vcol < oap->start_vcol) /* line too short */