diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-13 22:28:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-13 22:28:56 +0000 |
commit | 9ba0eb850c0f4c94df3b7f7461610bf0b073f712 (patch) | |
tree | 11638af8ad8ecdfd337a6db15914b2e2cdff3aea /src/misc1.c | |
parent | bac97eb8ae6b067466cab0481cac2f25b335ffe7 (diff) | |
download | vim-git-9ba0eb850c0f4c94df3b7f7461610bf0b073f712.tar.gz |
updated for version 7.0084v7.0084
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c index d4dabe634..7209a1ae2 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -3137,6 +3137,27 @@ get_number(colon) return n; } +/* + * Ask the user to enter a number. + */ + int +prompt_for_number() +{ + int i; + + /* When using ":silent" assume that <CR> was entered. */ + MSG_PUTS(_("Choice number (<Enter> cancels): ")); + i = get_number(TRUE); + if (KeyTyped) /* don't call wait_return() now */ + { + msg_putchar('\n'); + cmdline_row = msg_row - 1; + need_wait_return = FALSE; + msg_didany = FALSE; + } + return i; +} + void msgmore(n) long n; |