diff options
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index d83c03c9fd..efe0ccff6a 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -16,6 +16,7 @@ #include "nvim/version_defs.h" #include "nvim/misc1.h" #include "nvim/charset.h" +#include "nvim/cursor.h" #include "nvim/diff.h" #include "nvim/edit.h" #include "nvim/eval.h" @@ -1795,23 +1796,6 @@ int gchar_pos(pos_T *pos) return (int)*ptr; } -int gchar_cursor(void) -{ - if (has_mbyte) - return (*mb_ptr2char)(ml_get_cursor()); - return (int)*ml_get_cursor(); -} - -/* - * Write a character at the current cursor position. - * It is directly written into the block. - */ -void pchar_cursor(int c) -{ - *(ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE) - + curwin->w_cursor.col) = c; -} - /* * Skip to next part of an option argument: Skip space and comma. */ |