From e6127a49db3fbc14f982775856ee7bd29fe29ec6 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 1 Aug 2018 12:09:05 -0400 Subject: edit: temp in ins_del() is const int --- src/nvim/edit.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 4945b2b3c8..faf0cebea5 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -7475,12 +7475,11 @@ static void ins_shift(int c, int lastc) static void ins_del(void) { - int temp; - - if (stop_arrow() == FAIL) + if (stop_arrow() == FAIL) { return; - if (gchar_cursor() == NUL) { /* delete newline */ - temp = curwin->w_cursor.col; + } + if (gchar_cursor() == NUL) { // delete newline + const int temp = curwin->w_cursor.col; if (!can_bs(BS_EOL) // only if "eol" included || do_join(2, false, true, false, false) == FAIL) { vim_beep(BO_BS); -- cgit