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/ex_cmds.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/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 6c297f399b..de01665286 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -18,6 +18,7 @@ #include "nvim/ex_cmds.h" #include "nvim/buffer.h" #include "nvim/charset.h" +#include "nvim/cursor.h" #include "nvim/diff.h" #include "nvim/digraph.h" #include "nvim/edit.h" @@ -90,7 +91,7 @@ void do_ascii(exarg_T *eap) int len; if (enc_utf8) - c = utfc_ptr2char(ml_get_cursor(), cc); + c = utfc_ptr2char(get_cursor_pos_ptr(), cc); else c = gchar_cursor(); if (c == NUL) { @@ -257,7 +258,7 @@ static int linelen(int *has_tab) int len; /* find the first non-blank character */ - line = ml_get_curline(); + line = get_cursor_line_ptr(); first = skipwhite(line); /* find the character after the last non-blank character */ |