aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/macros.h5
-rw-r--r--src/ops.c8
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) \
diff --git a/src/ops.c b/src/ops.c
index c92dc6b921..06ce1b0ba9 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -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)