mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
edit: temp in ins_del() is const int
This commit is contained in:
parent
f807a7de04
commit
e6127a49db
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user