diff options
author | =?UTF-8?q?Luka=20Marku=C5=A1i=C4=87?= <luka.markusic@microblink.com> | 2021-05-20 21:14:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-20 21:14:20 +0200 |
commit | 5cf94577cf2045fec87344d7d89422fe6dfce62f (patch) | |
tree | df93f456dada232ba7dfaaf02171cc8b6eded4d5 /src/misc1.c | |
parent | 4eb1914e1bd870a7ea829cae150e1f9fdc3df7b1 (diff) | |
download | vim-git-5cf94577cf2045fec87344d7d89422fe6dfce62f.tar.gz |
patch 8.2.2875: cancelling inputlist() after a digit does not return zerov8.2.2875
Problem: Cancelling inputlist() after a digit does not return zero.
Solution: Always return zero when cancelling. (closes #8231)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c index a72dc9bf2..7cac06b92 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -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; |