diff options
author | lonerover <pathfinder1644@yahoo.com> | 2017-03-02 19:47:35 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-02 12:47:35 +0100 |
commit | 8a10497ce656acb20424f74e12772823c03c024a (patch) | |
tree | caea3a4bee6cd2e75eb00982c929fd347b54e5be /src/nvim/charset.c | |
parent | 286aacb2aa46c1fdcee5ab3908e0d01d91497e0d (diff) | |
download | rneovim-8a10497ce656acb20424f74e12772823c03c024a.tar.gz rneovim-8a10497ce656acb20424f74e12772823c03c024a.tar.bz2 rneovim-8a10497ce656acb20424f74e12772823c03c024a.zip |
vim-patch:7.4.1981 (#6192)
Problem: No testing for Farsi code.
Solution: Add a minimal test. Clean up Farsi code.
https://github.com/vim/vim/commit/ee2615af64fdcee87d8e4b13b65356e77fbd969b
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index e33e002787..9e240fd38b 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -486,7 +486,8 @@ char_u* transchar(int c) c = K_SECOND(c); } - if ((!chartab_initialized && (((c >= ' ') && (c <= '~')) || F_ischar(c))) + if ((!chartab_initialized && (((c >= ' ') && (c <= '~')) + || (p_altkeymap && F_ischar(c)))) || ((c < 256) && vim_isprintc_strict(c))) { // printable character transchar_buf[i] = (char_u)c; |