On 7 September 2015, Christian Brabandt <[email protected]> wrote:
> On Mo, 07 Sep 2015, LCD 47 wrote:
>
> > +NU ^@ 10 SH ^A 1 SX ^B 2 EX ^C 3 ET ^D 4 EQ ^E 5
> [… digraph list]
>
> Isn't this list different on different systems?
It shouldn't be, that's the point of setting encoding and
termencoding.
On the other hand, the exact format of the table does depend on
&columns. This means the test will (hopefully) suceed when run as part
of "make test", but it can fail when run out of order. Like I said, it
isn't a good test. Many details of the testing framework still elude my
understanding.
> At least, IIRC, for EBCDIC this would fail, wouldn't it? I am not
> sure, this matters nowadays anymore.
As far as I can tell EBCDIC shouldn't matter either, but I haven't
actually tested this. I also haven't run the tests on Amiga, MS-DOS,
VMS, OS/2, and Ming. :)
> Also I would add some special cases when testing digraphs:
> - Test, that <c-k><space>a returns the expected value (space is special)
> - Test, that <c-k><S-Space> returns <S-Space> as described at :h
> i_CTRL-K
> (S-Space will probably hard to type in the test, as this will probably
> only work reliable in the Gui, don't know what other chars are special
> in that context, besides the one mentioned in the help).
> so perhaps a test is not needed for that.
> - Test, that <C-K>a: is the same as <C-K>:a (digraphs can usually be
> entered in any order)
> - Test, that <C-K>=e and <C-K>Eu return the Euro sign
Isn't this covered by checking the contents of the table?
> Also this bit from the help seems to be obsolete:
>
> ,----
> | The <Esc> character cannot be part of a digraph. When hitting <Esc>, Vim
> | stops digraph entry and ends Insert mode or Command-line mode, just like
> | hitting an <Esc> out of digraph context.
> `----
>
> It never ends Insert or Command line mode fore me, so this seems to be
> wrong. And since no one complained about that until today, I think that
> can be removed.
/lcd
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.