1
0
forked from aniani/vim

patch 8.2.2875: cancelling inputlist() after a digit does not return zero

Problem:    Cancelling inputlist() after a digit does not return zero.
Solution:   Always return zero when cancelling. (closes #8231)
This commit is contained in:
=?UTF-8?q?Luka=20Marku=C5=A1i=C4=87?=
2021-05-20 21:14:20 +02:00
committed by Bram Moolenaar
parent 4eb1914e1b
commit 5cf94577cf
3 changed files with 12 additions and 1 deletions

View File

@@ -946,7 +946,12 @@ get_number(
do_redraw = FALSE;
break;
}
else if (c == CAR || c == NL || c == Ctrl_C || c == ESC || c == 'q')
else if (c == Ctrl_C || c == ESC || c == 'q')
{
n = 0;
break;
}
else if (c == CAR || c == NL )
break;
}
--no_mapping;