mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
remove pchar from macros.h
This commit is contained in:
parent
4c4880b69f
commit
0954e608ce
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user