Patch 9.0.0576
Problem:    Unused loop variables.
Solution:   Use a while loop instead. (closes #11214)
Files:      src/digraph.c


*** ../vim-9.0.0575/src/digraph.c       2022-08-30 15:05:27.016802522 +0100
--- src/digraph.c       2022-09-24 15:53:41.725105722 +0100
***************
*** 1596,1602 ****
      if (retval == 0)
      {
        dp = digraphdefault;
!       for (i = 0; dp->char1 != 0; ++i)
        {
            if ((int)dp->char1 == char1 && (int)dp->char2 == char2)
            {
--- 1596,1602 ----
      if (retval == 0)
      {
        dp = digraphdefault;
!       while (dp->char1 != 0)
        {
            if ((int)dp->char1 == char1 && (int)dp->char2 == char2)
            {
***************
*** 1773,1779 ****
      msg_putchar('\n');
  
      dp = digraphdefault;
!     for (i = 0; dp->char1 != NUL && !got_int; ++i)
      {
  #if defined(USE_UNICODE_DIGRAPHS)
        digr_T tmp;
--- 1773,1779 ----
      msg_putchar('\n');
  
      dp = digraphdefault;
!     while (dp->char1 != NUL && !got_int)
      {
  #if defined(USE_UNICODE_DIGRAPHS)
        digr_T tmp;
***************
*** 1876,1882 ****
      if (list_all)
      {
        dp = digraphdefault;
!       for (i = 0; dp->char1 != NUL && !got_int; ++i)
        {
  #ifdef USE_UNICODE_DIGRAPHS
            digr_T tmp;
--- 1876,1882 ----
      if (list_all)
      {
        dp = digraphdefault;
!       while (dp->char1 != NUL && !got_int)
        {
  #ifdef USE_UNICODE_DIGRAPHS
            digr_T tmp;
*** ../vim-9.0.0575/src/version.c       2022-09-24 15:36:32.096990933 +0100
--- src/version.c       2022-09-24 15:54:51.293478472 +0100
***************
*** 701,702 ****
--- 701,704 ----
  {   /* Add new patch number below this line */
+ /**/
+     576,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
166. You have been on your computer soo long that you didn't realize
     you had grandchildren.

 /// 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/20220924145559.8D11B1C0615%40moolenaar.net.

Raspunde prin e-mail lui