aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-05-28 10:47:25 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-05-28 10:47:58 -0400
commit3dddceedceebb73b93d399f2c56b0f1b5394c645 (patch)
treeed1d11dcde7c7eb64f9474ae1c8ef891757fd554 /src/nvim/quickfix.c
parente4fe2dbd777a59a9a9b386d960eb9dddc459e84e (diff)
parent7e3681c32e4fd1e19c01ffe7286ea29aafb2efc4 (diff)
downloadrneovim-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/quickfix.c')
-rw-r--r--src/nvim/quickfix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 269a33edcc..cba6b5f94d 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -16,6 +16,7 @@
#include "nvim/quickfix.h"
#include "nvim/buffer.h"
#include "nvim/charset.h"
+#include "nvim/cursor.h"
#include "nvim/edit.h"
#include "nvim/eval.h"
#include "nvim/ex_cmds.h"
@@ -1638,7 +1639,7 @@ win_found:
* found, reduce the error column value by the length of
* a tab character.
*/
- line = ml_get_curline();
+ line = get_cursor_line_ptr();
screen_col = 0;
for (char_col = 0; char_col < curwin->w_cursor.col; ++char_col) {
if (*line == NUL)