Skip to content

Commit 47416d1

Browse files
quagchrisbra
authored andcommitted
patch 9.0.2056: no digraph for quadruple prime
Problem: no digraph for quadruple prime Solution: add quadruple prime digraph using 4' closes: #13380 Signed-off-by: Jonathan Wright <quaggy@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Jonathan Wright <quaggy@gmail.com>
1 parent d4802ec commit 47416d1

4 files changed

Lines changed: 15 additions & 1 deletion

File tree

runtime/doc/digraph.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*digraph.txt* For Vim version 9.0. Last change: 2023 Mar 21
1+
*digraph.txt* For Vim version 9.0. Last change: 2023 Oct 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -174,6 +174,13 @@ ROUBLE
174174
The rouble sign was added in 2014 as 0x20bd. Vim supports the digraphs =R and
175175
=P for this. Note that R= and P= are other characters.
176176

177+
QUADRUPLE PRIME
178+
179+
The quadruple prime using the digraph 4' was added in 2023. Although it is
180+
not part of RFC 1345, it supplements the existing digraph implementation as
181+
there already exist digraphs for PRIME, DOUBLE PRIME and TRIPLE PRIME using
182+
the 1', 2' and 3' digraphs.
183+
177184
*digraph-table*
178185
char digraph hex dec official name ~
179186
^@ NU 0x00 0 NULL (NUL)
@@ -931,6 +938,7 @@ char digraph hex dec official name ~
931938
′ 1' 2032 8242 PRIME
932939
″ 2' 2033 8243 DOUBLE PRIME
933940
‴ 3' 2034 8244 TRIPLE PRIME
941+
⁗ 4' 2057 8279 QUADRUPLE PRIME
934942
‵ 1" 2035 8245 REVERSED PRIME
935943
‶ 2" 2036 8246 REVERSED DOUBLE PRIME
936944
‷ 3" 2037 8247 REVERSED TRIPLE PRIME

src/digraph.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ static digr_T digraphdefault[] = {
853853
{'1', '\'', 0x2032},
854854
{'2', '\'', 0x2033},
855855
{'3', '\'', 0x2034},
856+
{'4', '\'', 0x2057},
856857
{'1', '"', 0x2035},
857858
{'2', '"', 0x2036},
858859
{'3', '"', 0x2037},

src/testdir/test_digraph.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ func Test_digraphs()
3737
call Put_Dig("=P")
3838
call Put_Dig("P=")
3939
call assert_equal(['Р']+repeat([""],2)+['П'], getline(line('.')-3,line('.')))
40+
" Quadruple prime
41+
call Put_Dig("'4")
42+
call assert_equal("", getline('.'))
4043
" Not a digraph
4144
call Put_Dig("a\<bs>")
4245
call Put_Dig("\<bs>a")

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
2056,
707709
/**/
708710
2055,
709711
/**/

0 commit comments

Comments
 (0)