diff options
author | lonerover <pathfinder1644@yahoo.com> | 2017-03-22 12:24:07 +0800 |
---|---|---|
committer | lonerover <pathfinder1644@yahoo.com> | 2017-04-01 22:45:36 +0800 |
commit | 53da57d27a8ee47fe42604ad07bb7c956d9012f5 (patch) | |
tree | 127699227db448d4c2ddac9a16eea1a4d986bafe /src/nvim/macros.h | |
parent | 8de53157b691dd4ce604a5be0e2d9c3b6014bfdb (diff) | |
download | rneovim-53da57d27a8ee47fe42604ad07bb7c956d9012f5.tar.gz rneovim-53da57d27a8ee47fe42604ad07bb7c956d9012f5.tar.bz2 rneovim-53da57d27a8ee47fe42604ad07bb7c956d9012f5.zip |
vim-patch:7.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.
https://github.com/vim/vim/commit/920694c1b60fac8017b8909efcc24f189804a9bb
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r-- | src/nvim/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index 5042663041..a8df6322cf 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -94,7 +94,7 @@ do { \ if (*p_langmap \ && (condition) \ - && (!p_lnr || (p_lnr && typebuf_maplen() == 0)) \ + && (p_lrm || (!p_lrm && KeyTyped)) \ && !KeyStuffed \ && (c) >= 0) \ { \ |