Patch 9.0.0959
Problem:    Error when using the "File Settings / Text Width" menu.
Solution:   Use str2nr(). (closes #11624)
Files:      runtime/menu.vim


*** ../vim-9.0.0958/runtime/menu.vim    2022-10-09 18:53:29.020591194 +0100
--- runtime/menu.vim    2022-11-27 15:48:58.291134643 +0000
***************
*** 341,347 ****
      # Remove leading zeros to avoid it being used as an octal number.
      # But keep a zero by itself.
      var tw = substitute(n, "^0*", "", "")
!     &tw = tw == '' ? 0 : tw
    endif
  enddef
  
--- 341,347 ----
      # Remove leading zeros to avoid it being used as an octal number.
      # But keep a zero by itself.
      var tw = substitute(n, "^0*", "", "")
!     &tw = tw == '' ? 0 : str2nr(tw)
    endif
  enddef
  
*** ../vim-9.0.0958/src/version.c       2022-11-27 14:39:27.885337780 +0000
--- src/version.c       2022-11-27 15:50:04.091076277 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     959,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
161. You get up before the sun rises to check your e-mail, and you
     find yourself in the very same chair long after the sun has set.

 /// 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/20221127155212.3E0251C09EA%40moolenaar.net.

Raspunde prin e-mail lui