Patch 8.1.0436
Problem:    Can get the text of inputsecret() with getcmdline(). (Tommy Allen)
Solution:   Don't return the text.
Files:      src/ex_getln.c


*** ../vim-8.1.0435/src/ex_getln.c      2018-09-25 20:48:53.882887698 +0200
--- src/ex_getln.c      2018-09-25 22:24:49.489341379 +0200
***************
*** 1310,1316 ****
            if (c != Ctrl_N && c != Ctrl_G && (c != 'e'
                                    || (ccline.cmdfirstc == '=' && KeyTyped)
  #ifdef FEAT_EVAL
!                                   || cmdline_star
  #endif
                                    ))
            {
--- 1310,1316 ----
            if (c != Ctrl_N && c != Ctrl_G && (c != 'e'
                                    || (ccline.cmdfirstc == '=' && KeyTyped)
  #ifdef FEAT_EVAL
!                                   || cmdline_star > 0
  #endif
                                    ))
            {
***************
*** 1805,1812 ****
                new_cmdpos = -1;
                if (c == '=')
                {
!                   if (ccline.cmdfirstc == '=' // can't do this recursively
!                           || cmdline_star)    // or when typing a password
                    {
                        beep_flush();
                        c = ESC;
--- 1805,1812 ----
                new_cmdpos = -1;
                if (c == '=')
                {
!                   if (ccline.cmdfirstc == '='  // can't do this recursively
!                           || cmdline_star > 0) // or when typing a password
                    {
                        beep_flush();
                        c = ESC;
***************
*** 6506,6513 ****
      char_u *
  get_cmdline_str(void)
  {
!     struct cmdline_info *p = get_ccline_ptr();
  
      if (p == NULL)
        return NULL;
      return vim_strnsave(p->cmdbuff, p->cmdlen);
--- 6506,6516 ----
      char_u *
  get_cmdline_str(void)
  {
!     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);
*** ../vim-8.1.0435/src/version.c       2018-09-25 22:17:51.111962197 +0200
--- src/version.c       2018-09-25 22:27:15.498025693 +0200
***************
*** 796,797 ****
--- 796,799 ----
  {   /* Add new patch number below this line */
+ /**/
+     436,
  /**/

-- 
To be rich is not the end, but only a change of worries.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui