mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 02:38:19 +00:00
remove pchar from macros.h
This commit is contained in:
@@ -10,11 +10,6 @@
|
|||||||
* macros.h: macro definitions for often used code
|
* macros.h: macro definitions for often used code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* pchar(lp, c) - put character 'c' at position 'lp'
|
|
||||||
*/
|
|
||||||
#define pchar(lp, c) (*(ml_get_buf(curbuf, (lp).lnum, TRUE) + (lp).col) = (c))
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Position comparisons
|
* Position comparisons
|
||||||
*/
|
*/
|
||||||
|
@@ -1698,6 +1698,14 @@ static void mb_adjust_opend(oparg_T *oap)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Put character 'c' at position 'lp'
|
||||||
|
*/
|
||||||
|
static inline void pchar(pos_T lp, int c)
|
||||||
|
{
|
||||||
|
*(ml_get_buf(curbuf, lp.lnum, TRUE) + lp.col) = c;;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Replace a whole area with one character.
|
* Replace a whole area with one character.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user