diff options
author | Hinidu <hinidu@gmail.com> | 2014-05-02 15:34:53 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-28 10:42:06 -0400 |
commit | e62722922b671d6f529570af8c96c463878dd46d (patch) | |
tree | b7c0faf790b777dfc29caf595953f314253e43cb /src/nvim/misc1.c | |
parent | e4fe2dbd777a59a9a9b386d960eb9dddc459e84e (diff) | |
download | rneovim-e62722922b671d6f529570af8c96c463878dd46d.tar.gz rneovim-e62722922b671d6f529570af8c96c463878dd46d.tar.bz2 rneovim-e62722922b671d6f529570af8c96c463878dd46d.zip |
Extract cursor.h from misc{1,2}.h and memline.h
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. */ |