aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.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/ops.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/ops.c')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index d328299232..9e85997ca0 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -3182,7 +3182,7 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags)
if (cur_ve_flags == VE_ALL && y_type == kMTCharWise) {
if (gchar_cursor() == TAB) {
int viscol = getviscol();
- long ts = curbuf->b_p_ts;
+ OptInt ts = curbuf->b_p_ts;
// Don't need to insert spaces when "p" on the last position of a
// tab or "P" on the first position.
if (dir == FORWARD