diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-08 23:38:17 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-08 23:42:14 -0400 |
commit | 49647ae973dfc0b3448ee1e841d9bfd4af363873 (patch) | |
tree | 27dd72edc4382450696b18b2a13d38a5af854a56 | |
parent | 03bcfb54dbdcb90087c020b5d1256f2d6c2df14c (diff) | |
download | rneovim-49647ae973dfc0b3448ee1e841d9bfd4af363873.tar.gz rneovim-49647ae973dfc0b3448ee1e841d9bfd4af363873.tar.bz2 rneovim-49647ae973dfc0b3448ee1e841d9bfd4af363873.zip |
digraph: delete code that checks enc_utf8
enc_utf8 is always true in nvim.
-rw-r--r-- | src/nvim/digraph.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index 7adb54cb6a..8f7487262e 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -1526,29 +1526,6 @@ static int getexactdigraph(int char1, int char2, int meta_char) } } - if ((retval != 0) && !enc_utf8) { - char_u buf[6], *to; - vimconv_T vc; - - // Convert the Unicode digraph to 'encoding'. - int i = utf_char2bytes(retval, buf); - retval = 0; - vc.vc_type = CONV_NONE; - - if (convert_setup(&vc, (char_u *)"utf-8", p_enc) == OK) { - vc.vc_fail = true; - assert(i >= 0); - size_t len = (size_t)i; - to = string_convert(&vc, buf, &len); - - if (to != NULL) { - retval = utf_ptr2char(to); - xfree(to); - } - (void)convert_setup(&vc, NULL, NULL); - } - } - if (retval == 0) { // digraph deleted or not found if ((char1 == ' ') && meta_char) { |