Patch 8.0.1528
Problem:    Dead code found.
Solution:   Remove the useless lines. (CodeAi, closes #2656)
Files:      src/screen.c, src/spell.c, src/syntax.c, src/window.c


*** ../vim-8.0.1527/src/screen.c        2018-02-13 21:19:17.446701611 +0100
--- src/screen.c        2018-02-20 21:00:21.048014101 +0100
***************
*** 10182,10188 ****
  }
  
  /*
!  * show the current mode and ruler
   *
   * If clear_cmdline is TRUE, clear the rest of the cmdline.
   * If clear_cmdline is FALSE there may be a message there that needs to be
--- 10182,10188 ----
  }
  
  /*
!  * Show the current mode and ruler.
   *
   * If clear_cmdline is TRUE, clear the rest of the cmdline.
   * If clear_cmdline is FALSE there may be a message there that needs to be
***************
*** 10291,10297 ****
                        msg_puts_attr(edit_submode_extra, sub_attr);
                    }
                }
-               length = 0;
            }
            else
  #endif
--- 10291,10296 ----
*** ../vim-8.0.1527/src/spell.c 2018-02-10 18:45:21.092821986 +0100
--- src/spell.c 2018-02-20 21:01:54.819288488 +0100
***************
*** 2404,2410 ****
            {
                vim_strncpy(region_cp, p + 1, 2);
                mch_memmove(p, p + 3, len - (p - lang) - 2);
-               len -= 3;
                region = region_cp;
            }
            else
--- 2404,2409 ----
*** ../vim-8.0.1527/src/syntax.c        2018-02-10 18:45:21.092821986 +0100
--- src/syntax.c        2018-02-20 21:44:29.546419076 +0100
***************
*** 6814,6820 ****
      MSG_PUTS("\n");
      for (idx = 0; idx < ga.ga_len && !got_int; ++idx)
      {
-       spp = &(SYN_ITEMS(curwin->w_s)[idx]);
        p = ((time_entry_T *)ga.ga_data) + idx;
  
        MSG_PUTS(profile_msg(&p->total));
--- 6814,6819 ----
*** ../vim-8.0.1527/src/window.c        2018-02-10 18:45:21.100821928 +0100
--- src/window.c        2018-02-20 21:03:55.918353328 +0100
***************
*** 1899,1905 ****
  
        for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
        {
-           n = m = 0;
            wincount = 1;
            if (fr->fr_next == NULL)
                /* last frame gets all that remains (avoid roundoff error) */
--- 1899,1904 ----
***************
*** 2041,2047 ****
  
        for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
        {
-           n = m = 0;
            wincount = 1;
            if (fr->fr_next == NULL)
                /* last frame gets all that remains (avoid roundoff error) */
--- 2040,2045 ----
*** ../vim-8.0.1527/src/version.c       2018-02-20 17:09:12.063168427 +0100
--- src/version.c       2018-02-20 21:43:37.874787652 +0100
***************
*** 773,774 ****
--- 773,776 ----
  {   /* Add new patch number below this line */
+ /**/
+     1528,
  /**/

-- 
I wonder, do vegetarians eat fruit bats?

 /// 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