Mercurial > vim
annotate runtime/keymap/serbian_utf-8.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 | 3fc0f57ecb91 |
children |
rev | line source |
---|---|
7 | 1 " Vim Keymap file for Serbian characters, classical variant, UTF-8 encoding |
2 " | |
3 " Maintainer: Aleksandar Veselinovic <aleksa@cs.cmu.edu> | |
4 " URL: http://www.cs.cmu.edu/~aleksa/personal/vim/keymap/serbian-UTF-8.vim | |
5 " Last Changed: 2002 Mar 29 | |
6 | |
7 scriptencoding UTF-8 | |
8 | |
9 let b:keymap_name = "serbian-UTF-8" | |
10 | |
11 loadkeymap | |
12 Q Љ | |
13 W Њ | |
14 E Е | |
15 R Р | |
16 T Т | |
17 Y З | |
18 U У | |
19 I И | |
20 O О | |
21 P П | |
22 { Ш | |
23 } Ђ | |
24 q љ | |
25 w њ | |
26 e е | |
27 r р | |
28 t т | |
29 y з | |
30 u у | |
31 i и | |
32 o о | |
33 p п | |
34 [ ш | |
35 ] ђ | |
36 A А | |
37 S С | |
38 D Д | |
39 F Ф | |
40 G Г | |
41 H Х | |
42 J Ј | |
43 K К | |
44 L Л | |
45 : Ч | |
46 \" Ћ | |
47 \| Ж | |
48 a а | |
49 s с | |
50 d д | |
51 f ф | |
52 g г | |
53 h х | |
54 j ј | |
55 k к | |
56 l л | |
57 ; ч | |
58 ' ћ | |
59 \\ ж | |
60 "Z З | |
61 X Џ | |
62 C Ц | |
63 V В | |
64 B Б | |
65 N Н | |
66 M М | |
67 "z з | |
68 x џ | |
69 c ц | |
70 v в | |
71 b б | |
72 n н | |
73 m м | |
74 | |
75 < ; | |
76 > : | |
77 / - | |
78 _ ? | |
79 ,, „ | |
80 '' ” | |
81 | |
82 E$ <char-0x20AC> " EURO SIGN | |
83 -- <char-0x2013> " endash | |
84 --- <char-0x2014> " emdash | |
85 | |
86 " @ " | |
87 " # ' | |
88 " $ * | |
89 " % : | |
90 " ^ , | |
91 " & . | |
92 " * ; | |
93 |