diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-05-28 10:47:25 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-28 10:47:58 -0400 |
commit | 3dddceedceebb73b93d399f2c56b0f1b5394c645 (patch) | |
tree | ed1d11dcde7c7eb64f9474ae1c8ef891757fd554 /src/nvim/memline.c | |
parent | e4fe2dbd777a59a9a9b386d960eb9dddc459e84e (diff) | |
parent | 7e3681c32e4fd1e19c01ffe7286ea29aafb2efc4 (diff) | |
download | rneovim-3dddceedceebb73b93d399f2c56b0f1b5394c645.tar.gz rneovim-3dddceedceebb73b93d399f2c56b0f1b5394c645.tar.bz2 rneovim-3dddceedceebb73b93d399f2c56b0f1b5394c645.zip |
Merge #674 'Extract cursor.h from misc{1,2}.h and memline.h'
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index dc6823c8fa..c831727a0a 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -46,6 +46,7 @@ #include "nvim/vim.h" #include "nvim/memline.h" #include "nvim/buffer.h" +#include "nvim/cursor.h" #include "nvim/eval.h" #include "nvim/fileio.h" #include "nvim/main.h" @@ -1777,23 +1778,6 @@ char_u *ml_get_pos(pos_T *pos) } /* - * Return pointer to cursor line. - */ -char_u *ml_get_curline(void) -{ - return ml_get_buf(curbuf, curwin->w_cursor.lnum, FALSE); -} - -/* - * Return pointer to cursor position. - */ -char_u *ml_get_cursor(void) -{ - return ml_get_buf(curbuf, curwin->w_cursor.lnum, FALSE) + - curwin->w_cursor.col; -} - -/* * Return a pointer to a line in a specific buffer * * "will_change": if TRUE mark the buffer dirty (chars in the line will be |