Skip to content

Instantly share code, notes, and snippets.

@h-east
Created April 16, 2017 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h-east/64994cf789ba6ad377fd7c8cbc8b5080 to your computer and use it in GitHub Desktop.
Save h-east/64994cf789ba6ad377fd7c8cbc8b5080 to your computer and use it in GitHub Desktop.
Probably, maybe fix 'ambiwidth' problem for the patch Vim 8.0.0543 or later
diff --git a/src/term.c b/src/term.c
index 85b1ff5..b623eb9 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3314,7 +3314,7 @@ may_req_ambiguous_char_width(void)
{
if (u7_status == U7_GET
&& can_get_termresponse()
- && starting == 0
+// && starting == 0
&& *T_U7 != NUL
&& !option_was_set((char_u *)"ambiwidth"))
{
@h-east
Copy link
Author

h-east commented Apr 18, 2017

Memo:
East Asian Ambiguous Width Character is no longer displayed correctly from patch 8.0.0563.

At this point, it is only on the Terminal App and iTerm2 of macOS that I can confirm this phenomenon.

@h-east
Copy link
Author

h-east commented Apr 18, 2017

./vim -Nu NONE --cmd "set enc=utf-8" -c "set ambw=double" hh.txt

Unicode East Asian Ambiguous Character with set to Wide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment