]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1065: no digraph for "Approaches the limit" v9.1.1065
authorHans Ginzel <hans@matfyz.cz>
Sat, 1 Feb 2025 15:15:11 +0000 (16:15 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 1 Feb 2025 15:17:14 +0000 (16:17 +0100)
Problem:  no digraph for "Approaches the limit"
Solution: Add the digraph using .= (Hans Ginzel)

Add digraph Approaches the Limit

≐ U+2250 https://www.fileformat.info/info/unicode/char/2250/index.htm

closes: #16508

Signed-off-by: Hans Ginzel <hans@matfyz.cz>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/digraph.txt
runtime/doc/version9.txt
src/digraph.c
src/testdir/test_digraph.vim
src/version.c

index 6bed06523501f62954fdb25bba1df929081a9c5d..2a96812bf9b436534bb210a57653411a763d8e76 100644 (file)
@@ -1,4 +1,4 @@
-*digraph.txt*   For Vim version 9.1.  Last change: 2023 Oct 20
+*digraph.txt*   For Vim version 9.1.  Last change: 2025 Feb 02
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -125,8 +125,8 @@ see them.
 
 On most systems Vim uses the same digraphs.  They work for the Unicode and
 ISO-8859-1 character sets.  These default digraphs are taken from the RFC1345
-mnemonics.  To make it easy to remember the mnemonic, the second character has
-a standard meaning:
+mnemonics (with some additions).  To make it easy to remember the mnemonic,
+the second character has a standard meaning:
 
        char name               char    meaning ~
        Exclamation mark        !       Grave
@@ -1075,6 +1075,7 @@ char  digraph     hex     dec     official name ~
 ≅    ?=      2245    8773    APPROXIMATELY EQUAL TO
 ≈    ?2      2248    8776    ALMOST EQUAL TO
 ≌    =?      224C    8780    ALL EQUAL TO
+≐    .=      2250    8784    APPROACHES THE LIMIT
 ≓    HI      2253    8787    IMAGE OF OR APPROXIMATELY EQUAL TO
 ≠    !=      2260    8800    NOT EQUAL TO
 ≡    =3      2261    8801    IDENTICAL TO
index 64f49a63dfc44dc183b2ad80b6731f452b588159..010a0cbad4215a0f8a8b34a6a357a136783a1b0e 100644 (file)
@@ -41635,6 +41635,7 @@ Changed~
        "preinsert"     - highlight to be inserted values
 - add |dist#vim9#Launch()| and |dist#vim9#Open()| to the |vim-script-library|
   and decouple it from |netrw|
+- new digraph "APPROACHES THE LIMIT" using ".="
 
                                                        *added-9.2*
 Added ~
index 32b36be228432bb16444adcd9fbf13743141fbcc..a5dff00d1b884eaf4817fe4837f1c0d13fbffb37 100644 (file)
@@ -997,6 +997,7 @@ static digr_T digraphdefault[] = {
        {'?', '=', 0x2245},
        {'?', '2', 0x2248},
        {'=', '?', 0x224c},
+       {'.', '=', 0x2250},
        {'H', 'I', 0x2253},
        {'!', '=', 0x2260},
        {'=', '3', 0x2261},
index 88b8ded95dbf4abf3a10042d65a6f125bd7f4384..29fa3001826790fd207d906a5923035c1b20a483 100644 (file)
@@ -40,6 +40,9 @@ func Test_digraphs()
   " Quadruple prime
   call Put_Dig("'4")
   call assert_equal("⁗", getline('.'))
+  " APPROACHES THE LIMIT
+  call Put_Dig(".=")
+  call assert_equal("≐", getline('.'))
   " Not a digraph
   call Put_Dig("a\<bs>")
   call Put_Dig("\<bs>a")
index fae9195c5f81e61a3f74b758753a20b3000dfa6a..6f59af4e1c2db26f11950354b7aa73894cc9c1e5 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1065,
 /**/
     1064,
 /**/