mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +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:
@@ -803,13 +803,13 @@ static void normal_get_additional_char(NormalState *s)
|
||||
&& s->ca.cmdchar == 'g') {
|
||||
s->ca.oap->op_type = get_op_type(*cp, NUL);
|
||||
} else if (*cp == Ctrl_BSL) {
|
||||
long towait = (p_ttm >= 0 ? p_ttm : p_tm);
|
||||
int towait = (p_ttm >= 0 ? (int)p_ttm : (int)p_tm);
|
||||
|
||||
// There is a busy wait here when typing "f<C-\>" and then
|
||||
// something different from CTRL-N. Can't be avoided.
|
||||
while ((s->c = vpeekc()) <= 0 && towait > 0L) {
|
||||
do_sleep(towait > 50L ? 50L : towait);
|
||||
towait -= 50L;
|
||||
while ((s->c = vpeekc()) <= 0 && towait > 0) {
|
||||
do_sleep(towait > 50 ? 50 : towait);
|
||||
towait -= 50;
|
||||
}
|
||||
if (s->c > 0) {
|
||||
s->c = plain_vgetc();
|
||||
@@ -2785,7 +2785,7 @@ static void nv_zet(cmdarg_T *cap)
|
||||
{
|
||||
colnr_T col;
|
||||
int nchar = cap->nchar;
|
||||
long old_fdl = curwin->w_p_fdl;
|
||||
long old_fdl = (long)curwin->w_p_fdl;
|
||||
int old_fen = curwin->w_p_fen;
|
||||
|
||||
int siso = get_sidescrolloff_value(curwin);
|
||||
|
Reference in New Issue
Block a user