diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-10-05 22:59:31 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-10-06 09:34:47 -0400 |
commit | b007e5d8820c613606bdc3afcb49d7eecc14ea0b (patch) | |
tree | 82cfac221c06cbec230f2dec7e85f5b9859f76a9 /src/nvim/digraph.c | |
parent | 5581ffac740d4a75809c6395da4ab757b8d7e6c8 (diff) | |
download | rneovim-b007e5d8820c613606bdc3afcb49d7eecc14ea0b.tar.gz rneovim-b007e5d8820c613606bdc3afcb49d7eecc14ea0b.tar.bz2 rneovim-b007e5d8820c613606bdc3afcb49d7eecc14ea0b.zip |
vim-patch:8.1.0059: displayed digraph for "ga" wrong with 'encoding' "cp1251"
Problem: Displayed digraph for "ga" wrong with 'encoding' "cp1251".
Solution: Convert from 'encoding' to "utf-8" if needed. (closes vim/vim#3015)
https://github.com/vim/vim/commit/bc5020aa4d7ef4aea88395eff858f74fc881eab9
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r-- | src/nvim/digraph.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index f6ec350488..427b5537f3 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -1450,8 +1450,9 @@ int do_digraph(int c) /// Find a digraph for "val". If found return the string to display it. /// If not found return NULL. -char_u *get_digraph_for_char(int val) +char_u *get_digraph_for_char(int val_arg) { + const int val = val_arg; digr_T *dp; static char_u r[3]; |