Patch 8.2.4910
Problem:    Imperfect coding.
Solution:   Make code nicer.
Files:      src/ex_getln.c


*** ../vim-8.2.4909/src/ex_getln.c      2022-05-07 12:48:24.074194794 +0100
--- src/ex_getln.c      2022-05-07 17:42:55.943032773 +0100
***************
*** 4130,4136 ****
        return NULL;
  
      p = get_ccline_ptr();
!     if (p && p->xpc != NULL)
      {
        char_u *cmd_compl;
  
--- 4130,4136 ----
        return NULL;
  
      p = get_ccline_ptr();
!     if (p != NULL && p->xpc != NULL)
      {
        char_u *cmd_compl;
  
***************
*** 4138,4144 ****
  
        cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context);
        if (cmd_compl != NULL)
!           return vim_strnsave(cmd_compl, strlen((char *)cmd_compl));
      }
  
      return NULL;
--- 4138,4144 ----
  
        cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context);
        if (cmd_compl != NULL)
!           return vim_strsave(cmd_compl);
      }
  
      return NULL;
*** ../vim-8.2.4909/src/version.c       2022-05-07 16:38:20.489315665 +0100
--- src/version.c       2022-05-07 17:43:48.146998470 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4910,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
131. You challenge authority and society by portnuking people

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220507164546.734BB1C0645%40moolenaar.net.

Raspunde prin e-mail lui