diff --git a/runtime/doc/digraph.txt b/runtime/doc/digraph.txt index 6bed065235..2a96812bf9 100644 --- a/runtime/doc/digraph.txt +++ b/runtime/doc/digraph.txt @@ -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 diff --git a/runtime/doc/version9.txt b/runtime/doc/version9.txt index 64f49a63df..010a0cbad4 100644 --- a/runtime/doc/version9.txt +++ b/runtime/doc/version9.txt @@ -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 ~ diff --git a/src/digraph.c b/src/digraph.c index 32b36be228..a5dff00d1b 100644 --- a/src/digraph.c +++ b/src/digraph.c @@ -997,6 +997,7 @@ static digr_T digraphdefault[] = { {'?', '=', 0x2245}, {'?', '2', 0x2248}, {'=', '?', 0x224c}, + {'.', '=', 0x2250}, {'H', 'I', 0x2253}, {'!', '=', 0x2260}, {'=', '3', 0x2261}, diff --git a/src/testdir/test_digraph.vim b/src/testdir/test_digraph.vim index 88b8ded95d..29fa300182 100644 --- a/src/testdir/test_digraph.vim +++ b/src/testdir/test_digraph.vim @@ -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\") call Put_Dig("\a") diff --git a/src/version.c b/src/version.c index fae9195c5f..6f59af4e1c 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1065, /**/ 1064, /**/