aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-09-21 10:15:19 -0400
committerJames McCoy <jamessan@jamessan.com>2016-09-24 14:03:14 -0400
commitd533edf61eef15456efdf16bf45e68c824ee5870 (patch)
tree0fbbf17c1bc09ae02d543edee2b1e6a7528421ab /src/nvim/option.c
parent68bcb32ec43e2fab30dc05439fc77cf28793922c (diff)
downloadrneovim-d533edf61eef15456efdf16bf45e68c824ee5870.tar.gz
rneovim-d533edf61eef15456efdf16bf45e68c824ee5870.tar.bz2
rneovim-d533edf61eef15456efdf16bf45e68c824ee5870.zip
vim-patch:7.4.1604
Problem: Although emoji characters are ambiguous width, best is to treat them as full width. Solution: Update the Unicode character tables. Add the 'emoji' options. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/3848e00e0177abdb31bc600234967863ec487233
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index d8908cca90..acefe5b4aa 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2520,7 +2520,7 @@ did_set_string_option (
errmsg = e_invarg;
}
/* 'ambiwidth' */
- else if (varp == &p_ambw) {
+ else if (varp == &p_ambw || (bool *)varp == &p_emoji) {
if (check_opt_strings(p_ambw, p_ambw_values, FALSE) != OK)
errmsg = e_invarg;
else if (set_chars_option(&p_lcs) != NULL)