diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-11-27 15:51:46 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-11-27 15:51:46 +0000 |
commit | 8b336a6614463fb9ce72db24d00c5aef4f22697e (patch) | |
tree | 3ecfe4559ee26ead26011f0d5fd456372205f6d7 /runtime | |
parent | 19cf525c20f9915ffcddda35c27608528f6af047 (diff) |
patch 9.0.0959: error when using the "File Settings / Text Width" menuv9.0.0959
Problem: Error when using the "File Settings / Text Width" menu.
Solution: Use str2nr(). (closes #11624)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/menu.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index d449a75102..ab509a6927 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -341,7 +341,7 @@ def s:TextWidth() # 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 + &tw = tw == '' ? 0 : str2nr(tw) endif enddef |