annotate runtime/ftplugin/btm.vim @ 33791:370543108ba1 v9.0.2114

patch 9.0.2114: overflow detection not accurate when adding digits Commit: https://github.com/vim/vim/commit/22cbc8a4e17ce61aa460c451a26e1bff2c3d2af9 Author: Christian Brabandt <cb@256bit.org> Date: Sun Nov 19 10:47:21 2023 +0100 patch 9.0.2114: overflow detection not accurate when adding digits Problem: overflow detection not accurate when adding digits Solution: Use a helper function Use a helper function to better detect overflows before adding integer digits to a long or an integer variable respectively. Signal the overflow to the caller function. closes: #13539 Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Michael Henry <vim@drmikehenry.com> Signed-off-by: Ernie Rael <errael@raelity.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Nov 2023 11:00:07 +0100
parents 4027cefc2aab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
2 " Language: BTM
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 15
diff changeset
3 " Maintainer: The Vim Project <https://github.com/vim/vim>
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 15
diff changeset
4 " Last Change: 2023 Aug 10
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 15
diff changeset
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org>
15
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
6
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
7 " Only do this when not done yet for this buffer
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
8 if exists("b:did_ftplugin")
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
9 finish
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
10 endif
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
11
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
12 " Behaves just like dosbatch
631143ac4a01 updated for version 7.0007
vimboss
parents:
diff changeset
13 runtime! ftplugin/dosbatch.vim ftplugin/dosbatch_*.vim ftplugin/dosbatch/*.vim