Problem: Can get the text of inputsecret() with getcmdline(). (Tommy Allen)
Solution: Don't return the text.
if (c != Ctrl_N && c != Ctrl_G && (c != 'e'
|| (ccline.cmdfirstc == '=' && KeyTyped)
#ifdef FEAT_EVAL
- || cmdline_star
+ || cmdline_star > 0
#endif
))
{
new_cmdpos = -1;
if (c == '=')
{
- if (ccline.cmdfirstc == '=' // can't do this recursively
- || cmdline_star) // or when typing a password
+ if (ccline.cmdfirstc == '=' // can't do this recursively
+ || cmdline_star > 0) // or when typing a password
{
beep_flush();
c = ESC;
char_u *
get_cmdline_str(void)
{
- struct cmdline_info *p = get_ccline_ptr();
+ struct cmdline_info *p;
+ if (cmdline_star > 0)
+ return NULL;
+ p = get_ccline_ptr();
if (p == NULL)
return NULL;
return vim_strnsave(p->cmdbuff, p->cmdlen);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 436,
/**/
435,
/**/