diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-30 21:52:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-30 21:52:54 +0200 |
commit | ebe9d34aa07037cff2188a8dd424ee1f59cbb0bf (patch) | |
tree | 6e92c722c69a459f6537148ac8579c0fa4f27b85 /runtime/doc/eval.txt | |
parent | 363d6148dfc2cc17fb0d286c7a36c305f56f5813 (diff) |
patch 8.2.0855: GUI tests fail because the test doesn't use a modifierv8.2.0855
Problem: GUI tests fail because the test doesn't use a modifier.
Solution: Add "\{xxx}" to be able to encode a modifier.
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 0585ce020f..11cc772b2f 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1353,6 +1353,9 @@ A string constant accepts these special characters: To use the double quote character it must be escaped: "<M-\">". Don't use <Char-xxxx> to get a utf-8 character, use \uxxxx as mentioned above. +\{xxx} like \<xxx> but prepends a modifier instead of including it in the + character. E.g. "\<C-w>" is one character 0x17 while "\{C-w}" is four + bytes: 3 for the CTRL modifier and then character "W". Note that "\xff" is stored as the byte 255, which may be invalid in some encodings. Use "\u00ff" to store character 255 according to the current value |