4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Calling inputdialog() with a third argument in the console doesn't
13 Solution: Make a separate function for input() and inputdialog(). (Yegappan
18 *** ../vim-7.0.038/src/eval.c Wed Jul 12 21:48:56 2006
19 --- src/eval.c Mon Jul 10 23:03:13 2006
23 static int inputsecret_flag = 0;
26 ! * "input()" function
27 ! * Also handles inputsecret() when inputsecret is set.
30 ! f_input(argvars, rettv)
34 char_u *prompt = get_tv_string_chk(&argvars[0]);
38 static int inputsecret_flag = 0;
40 + static void get_user_input __ARGS((typval_T *argvars, typval_T *rettv, int inputdialog));
43 ! * This function is used by f_input() and f_inputdialog() functions. The third
44 ! * argument to f_input() specifies the type of completion to use at the
45 ! * prompt. The third argument to f_inputdialog() specifies the value to return
46 ! * when the user cancels the prompt.
49 ! get_user_input(argvars, rettv, inputdialog)
54 char_u *prompt = get_tv_string_chk(&argvars[0]);
59 stuffReadbuffSpec(defstr);
61 ! if (argvars[2].v_type != VAR_UNKNOWN)
67 stuffReadbuffSpec(defstr);
69 ! if (!inputdialog && argvars[2].v_type != VAR_UNKNOWN)
79 + * "input()" function
80 + * Also handles inputsecret() when inputsecret is set.
83 + f_input(argvars, rettv)
87 + get_user_input(argvars, rettv, FALSE);
91 * "inputdialog()" function
99 ! f_input(argvars, rettv);
107 ! get_user_input(argvars, rettv, TRUE);
111 *** ../vim-7.0.038/src/version.c Wed Jul 12 21:48:56 2006
112 --- src/version.c Wed Jul 12 21:56:30 2006
116 { /* Add new patch number below this line */
122 A consultant is a person who takes your money and annoys your employees while
123 tirelessly searching for the best way to extend the consulting contract.
124 (Scott Adams - The Dilbert principle)
126 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
127 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
128 \\\ download, build and distribute -- http://www.A-A-P.org ///
129 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///