Extract cursor.h from misc{1,2}.h and memline.h

This commit is contained in:
Hinidu
2014-05-02 15:34:53 +03:00
committed by Justin M. Keyes
parent e4fe2dbd77
commit e62722922b
37 changed files with 548 additions and 498 deletions

View File

@@ -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.
*/