aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/digraph.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-08 23:32:33 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-08 23:42:14 -0400
commit03bcfb54dbdcb90087c020b5d1256f2d6c2df14c (patch)
tree0b784aa9d3b60409d4475cceddcd16a67f64f87f /src/nvim/digraph.c
parent95608136d54bf6d7e4fd660745f7004936262693 (diff)
downloadrneovim-03bcfb54dbdcb90087c020b5d1256f2d6c2df14c.tar.gz
rneovim-03bcfb54dbdcb90087c020b5d1256f2d6c2df14c.tar.bz2
rneovim-03bcfb54dbdcb90087c020b5d1256f2d6c2df14c.zip
digraph: refactor code that checks has_mbyte
has_mbyte is always true in nvim.
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r--src/nvim/digraph.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c
index aa533edf6c..7adb54cb6a 100644
--- a/src/nvim/digraph.c
+++ b/src/nvim/digraph.c
@@ -1549,11 +1549,6 @@ static int getexactdigraph(int char1, int char2, int meta_char)
}
}
- // Ignore multi-byte characters when not in multi-byte mode.
- if (!has_mbyte && (retval > 0xff)) {
- retval = 0;
- }
-
if (retval == 0) {
// digraph deleted or not found
if ((char1 == ' ') && meta_char) {
@@ -1660,8 +1655,7 @@ void listdigraphs(void)
tmp.result = getexactdigraph(tmp.char1, tmp.char2, FALSE);
if ((tmp.result != 0)
- && (tmp.result != tmp.char2)
- && (has_mbyte || (tmp.result <= 255))) {
+ && (tmp.result != tmp.char2)) {
printdigraph(&tmp);
}
dp++;