summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-13 22:28:56 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-13 22:28:56 +0000
commit9ba0eb850c0f4c94df3b7f7461610bf0b073f712 (patch)
tree11638af8ad8ecdfd337a6db15914b2e2cdff3aea /src/misc1.c
parentbac97eb8ae6b067466cab0481cac2f25b335ffe7 (diff)
downloadvim-git-9ba0eb850c0f4c94df3b7f7461610bf0b073f712.tar.gz
updated for version 7.0084v7.0084
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c21
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;