diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/macros.h | 5 | ||||
-rw-r--r-- | src/ops.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/macros.h b/src/macros.h index fbd3440c6d..af47fbe296 100644 --- a/src/macros.h +++ b/src/macros.h @@ -11,11 +11,6 @@ */ /* - * pchar(lp, c) - put character 'c' at position 'lp' - */ -#define pchar(lp, c) (*(ml_get_buf(curbuf, (lp).lnum, TRUE) + (lp).col) = (c)) - -/* * Position comparisons */ # define lt(a, b) (((a).lnum != (b).lnum) \ @@ -1699,6 +1699,14 @@ static void mb_adjust_opend(oparg_T *oap) } /* + * Put character 'c' at position 'lp' + */ +static inline void pchar(pos_T lp, int c) +{ + *(ml_get_buf(curbuf, lp.lnum, TRUE) + lp.col) = c;; +} + +/* * Replace a whole area with one character. */ int op_replace(oparg_T *oap, int c) |