mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
refactor: replace char_u with char 4 (#19987)
* refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -2698,12 +2698,12 @@ int cursor_down(long n, int upd_topline)
|
||||
/// @param no_esc Don't add an ESC at the end
|
||||
int stuff_inserted(int c, long count, int no_esc)
|
||||
{
|
||||
char_u *esc_ptr;
|
||||
char_u *ptr;
|
||||
char_u *last_ptr;
|
||||
char_u last = NUL;
|
||||
char *esc_ptr;
|
||||
char *ptr;
|
||||
char *last_ptr;
|
||||
char last = NUL;
|
||||
|
||||
ptr = get_last_insert();
|
||||
ptr = (char *)get_last_insert();
|
||||
if (ptr == NULL) {
|
||||
emsg(_(e_noinstext));
|
||||
return FAIL;
|
||||
@@ -2713,7 +2713,7 @@ int stuff_inserted(int c, long count, int no_esc)
|
||||
if (c != NUL) {
|
||||
stuffcharReadbuff(c);
|
||||
}
|
||||
if ((esc_ptr = STRRCHR(ptr, ESC)) != NULL) {
|
||||
if ((esc_ptr = strrchr(ptr, ESC)) != NULL) {
|
||||
// remove the ESC.
|
||||
*esc_ptr = NUL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user