• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision1aba098d6abc680214b3b31c954abd53ddc772ef (tree)
Time2006-07-13 15:31:00
Authorvimboss
Commitervimboss

Log Message

updated for version 7.0-039

Change Summary

Incremental Difference

diff -r adf6a9dcaded -r 1aba098d6abc src/eval.c
--- a/src/eval.c Wed Jul 12 19:49:41 2006 +0000
+++ b/src/eval.c Thu Jul 13 06:31:00 2006 +0000
@@ -11321,14 +11321,19 @@
1132111321
1132211322 static int inputsecret_flag = 0;
1132311323
11324-/*
11325- * "input()" function
11326- * Also handles inputsecret() when inputsecret is set.
11327- */
11328- static void
11329-f_input(argvars, rettv)
11330- typval_T *argvars;
11331- typval_T *rettv;
11324+static void get_user_input __ARGS((typval_T *argvars, typval_T *rettv, int inputdialog));
11325+
11326+/*
11327+ * This function is used by f_input() and f_inputdialog() functions. The third
11328+ * argument to f_input() specifies the type of completion to use at the
11329+ * prompt. The third argument to f_inputdialog() specifies the value to return
11330+ * when the user cancels the prompt.
11331+ */
11332+ static void
11333+get_user_input(argvars, rettv, inputdialog)
11334+ typval_T *argvars;
11335+ typval_T *rettv;
11336+ int inputdialog;
1133211337 {
1133311338 char_u *prompt = get_tv_string_chk(&argvars[0]);
1133411339 char_u *p = NULL;
@@ -11378,7 +11383,7 @@
1137811383 if (defstr != NULL)
1137911384 stuffReadbuffSpec(defstr);
1138011385
11381- if (argvars[2].v_type != VAR_UNKNOWN)
11386+ if (!inputdialog && argvars[2].v_type != VAR_UNKNOWN)
1138211387 {
1138311388 char_u *xp_name;
1138411389 int xp_namelen;
@@ -11413,6 +11418,18 @@
1141311418 }
1141411419
1141511420 /*
11421+ * "input()" function
11422+ * Also handles inputsecret() when inputsecret is set.
11423+ */
11424+ static void
11425+f_input(argvars, rettv)
11426+ typval_T *argvars;
11427+ typval_T *rettv;
11428+{
11429+ get_user_input(argvars, rettv, FALSE);
11430+}
11431+
11432+/*
1141611433 * "inputdialog()" function
1141711434 */
1141811435 static void
@@ -11452,7 +11469,7 @@
1145211469 }
1145311470 else
1145411471 #endif
11455- f_input(argvars, rettv);
11472+ get_user_input(argvars, rettv, TRUE);
1145611473 }
1145711474
1145811475 /*
diff -r adf6a9dcaded -r 1aba098d6abc src/version.c
--- a/src/version.c Wed Jul 12 19:49:41 2006 +0000
+++ b/src/version.c Thu Jul 13 06:31:00 2006 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 39,
671+/**/
670672 38,
671673 /**/
672674 37,
Show on old repository browser