diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-21 17:45:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-21 17:45:02 +0200 |
commit | 920694c1b60fac8017b8909efcc24f189804a9bb (patch) | |
tree | def5ea232552ca189a8fd9e2f78c93724cf68b17 /src/macros.h | |
parent | 989f592f7ffcbafdc4ec35cee4dc65bd053e2077 (diff) | |
download | vim-git-920694c1b60fac8017b8909efcc24f189804a9bb.tar.gz |
patch 7.4.2236v7.4.2236
Problem: The 'langnoremap' option leads to double negatives. And it does
not work for the last character of a mapping.
Solution: Add 'langremap' with the opposite value. Keep 'langnoremap' for
backwards compatibility. Make it work for the last character of a
mapping. Make the test work.
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.h b/src/macros.h index 28f43a362..aec142559 100644 --- a/src/macros.h +++ b/src/macros.h @@ -135,7 +135,7 @@ do { \ if (*p_langmap \ && (condition) \ - && (!p_lnr || (p_lnr && typebuf_maplen() == 0)) \ + && (p_lrm || (!p_lrm && KeyTyped)) \ && !KeyStuffed \ && (c) >= 0) \ { \ @@ -150,7 +150,7 @@ do { \ if (*p_langmap \ && (condition) \ - && (!p_lnr || (p_lnr && typebuf_maplen() == 0)) \ + && (p_lrm || (!p_lrm && KeyTyped)) \ && !KeyStuffed \ && (c) >= 0 && (c) < 256) \ c = langmap_mapchar[c]; \ |