Patch 9.0.0959

3 views
Skip to first unread message

Bram Moolenaar

unread,
Nov 27, 2022, 10:52:25 AM11/27/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages