mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
refactor: remove long
long is 32-bits even on 64-bit windows which makes the type suboptimal for a codebase meant to be cross-platform.
This commit is contained in:
@@ -127,7 +127,7 @@ typedef struct command_line_state {
|
||||
int ignore_drag_release;
|
||||
int break_ctrl_c;
|
||||
expand_T xpc;
|
||||
long *b_im_ptr;
|
||||
OptInt *b_im_ptr;
|
||||
buf_T *b_im_ptr_buf; ///< buffer where b_im_ptr is valid
|
||||
} CommandLineState;
|
||||
|
||||
@@ -149,7 +149,7 @@ typedef struct cmdpreview_undo_info {
|
||||
|
||||
typedef struct cmdpreview_buf_info {
|
||||
buf_T *buf;
|
||||
long save_b_p_ul;
|
||||
OptInt save_b_p_ul;
|
||||
int save_b_changed;
|
||||
varnumber_T save_changedtick;
|
||||
CpUndoInfo undo_info;
|
||||
@@ -1560,7 +1560,7 @@ static int command_line_erase_chars(CommandLineState *s)
|
||||
/// language :lmap mappings and/or Input Method.
|
||||
static void command_line_toggle_langmap(CommandLineState *s)
|
||||
{
|
||||
long *b_im_ptr = buf_valid(s->b_im_ptr_buf) ? s->b_im_ptr : NULL;
|
||||
OptInt *b_im_ptr = buf_valid(s->b_im_ptr_buf) ? s->b_im_ptr : NULL;
|
||||
if (map_to_exists_mode("", MODE_LANGMAP, false)) {
|
||||
// ":lmap" mappings exists, toggle use of mappings.
|
||||
State ^= MODE_LANGMAP;
|
||||
|
Reference in New Issue
Block a user