diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-27 17:01:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-27 17:01:56 +0000 |
commit | 3991dab8e0a3815bd5349c1ffa88476819971c48 (patch) | |
tree | cf81e7c822725142320f0ca0721357f34553cfb9 /src/misc1.c | |
parent | 899dddf88804af20d560b5277f1ca1bc4dd8e2b3 (diff) | |
download | vim-git-3991dab8e0a3815bd5349c1ffa88476819971c48.tar.gz |
updated for version 7.0cv7.0c
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c index 00921dc9b..162864282 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -3112,6 +3112,7 @@ get_number(colon, mouse_used) { int n = 0; int c; + int typed = 0; if (mouse_used != NULL) *mouse_used = FALSE; @@ -3134,11 +3135,16 @@ get_number(colon, mouse_used) { n = n * 10 + c - '0'; msg_putchar(c); + ++typed; } else if (c == K_DEL || c == K_KDEL || c == K_BS || c == Ctrl_H) { + if (typed > 0) + { + MSG_PUTS("\b \b"); + --typed; + } n /= 10; - MSG_PUTS("\b \b"); } #ifdef FEAT_MOUSE else if (mouse_used != NULL && c == K_LEFTMOUSE) |