aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.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/edit.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/edit.c')
-rw-r--r--src/nvim/edit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 1b5428e153..c1fb3f7470 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -4636,8 +4636,6 @@ static int ins_ctrl_ey(int tc)
} else {
c = ins_copychar(curwin->w_cursor.lnum + (c == Ctrl_Y ? -1 : 1));
if (c != NUL) {
- long tw_save;
-
// The character must be taken literally, insert like it
// was typed after a CTRL-V, and pretend 'textwidth'
// wasn't set. Digits, 'o' and 'x' are special after a
@@ -4645,7 +4643,7 @@ static int ins_ctrl_ey(int tc)
if (c < 256 && !isalnum(c)) {
AppendToRedobuff(CTRL_V_STR);
}
- tw_save = curbuf->b_p_tw;
+ OptInt tw_save = curbuf->b_p_tw;
curbuf->b_p_tw = -1;
insert_special(c, true, false);
curbuf->b_p_tw = tw_save;