diff options
author | dundargoc <gocdundar@gmail.com> | 2023-09-26 22:36:08 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-09-29 14:56:34 +0200 |
commit | af7d317f3ff31d5ac5d8724b5057a422e1451b54 (patch) | |
tree | c05c26591b00105d03684cb3179da935d104a964 /src/nvim/buffer.c | |
parent | 9afbfb4d646cd240e97dbaae109f12bfc853112c (diff) | |
download | rneovim-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/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 87096767f9..2131f4d836 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -206,7 +206,7 @@ int open_buffer(int read_stdin, exarg_T *eap, int flags_arg) int flags = flags_arg; int retval = OK; bufref_T old_curbuf; - long old_tw = curbuf->b_p_tw; + OptInt old_tw = curbuf->b_p_tw; int read_fifo = false; bool silent = shortmess(SHM_FILEINFO); @@ -965,7 +965,7 @@ void goto_buffer(exarg_T *eap, int start, int dir, int count) void handle_swap_exists(bufref_T *old_curbuf) { cleanup_T cs; - long old_tw = curbuf->b_p_tw; + OptInt old_tw = curbuf->b_p_tw; buf_T *buf; if (swap_exists_action == SEA_QUIT) { @@ -1532,7 +1532,7 @@ void set_curbuf(buf_T *buf, int action) buf_T *prevbuf; int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL || action == DOBUF_WIPE); - long old_tw = curbuf->b_p_tw; + OptInt old_tw = curbuf->b_p_tw; setpcmark(); if ((cmdmod.cmod_flags & CMOD_KEEPALT) == 0) { |