aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-09-26 22:36:08 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-09-29 14:56:34 +0200
commitaf7d317f3ff31d5ac5d8724b5057a422e1451b54 (patch)
treec05c26591b00105d03684cb3179da935d104a964 /src/nvim/ex_cmds.c
parent9afbfb4d646cd240e97dbaae109f12bfc853112c (diff)
downloadrneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.tar.gz
rneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.tar.bz2
rneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.zip
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.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 9eea29b3a2..bc82226d95 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -2148,7 +2148,6 @@ int do_ecmd(int fnum, char *ffname, char *sfname, exarg_T *eap, linenr_T newlnum
bufref_T old_curbuf;
char *free_fname = NULL;
int retval = FAIL;
- long n;
pos_T orig_pos;
linenr_T topline = 0;
int newcol = -1;
@@ -2158,7 +2157,7 @@ int do_ecmd(int fnum, char *ffname, char *sfname, exarg_T *eap, linenr_T newlnum
bool did_get_winopts = false;
int readfile_flags = 0;
bool did_inc_redrawing_disabled = false;
- long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
+ OptInt *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
if (eap != NULL) {
command = eap->do_ecmd_cmd;
@@ -2719,7 +2718,7 @@ int do_ecmd(int fnum, char *ffname, char *sfname, exarg_T *eap, linenr_T newlnum
RedrawingDisabled--;
did_inc_redrawing_disabled = false;
if (!skip_redraw) {
- n = *so_ptr;
+ OptInt n = *so_ptr;
if (topline == 0 && command == NULL) {
*so_ptr = 999; // force cursor to be vertically centered in the window
}