mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
refactor: remove use of reserved c++ keywords
libnvim couldn't be easily used in C++ due to the use of reserved keywords. Additionally, add explicit casts to *alloc function calls used in inline functions, as C++ doesn't allow implicit casts from void pointers.
This commit is contained in:
@@ -896,13 +896,13 @@ static int term_moverect(VTermRect dest, VTermRect src, void *data)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int term_movecursor(VTermPos new, VTermPos old, int visible, void *data)
|
||||
static int term_movecursor(VTermPos new_pos, VTermPos old_pos, int visible, void *data)
|
||||
{
|
||||
Terminal *term = data;
|
||||
term->cursor.row = new.row;
|
||||
term->cursor.col = new.col;
|
||||
invalidate_terminal(term, old.row, old.row + 1);
|
||||
invalidate_terminal(term, new.row, new.row + 1);
|
||||
term->cursor.row = new_pos.row;
|
||||
term->cursor.col = new_pos.col;
|
||||
invalidate_terminal(term, old_pos.row, old_pos.row + 1);
|
||||
invalidate_terminal(term, new_pos.row, new_pos.row + 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user