Skip to content

Instantly share code, notes, and snippets.

@mattn
Created June 6, 2012 11:15
Show Gist options
  • Select an option

  • Save mattn/2881320 to your computer and use it in GitHub Desktop.

Select an option

Save mattn/2881320 to your computer and use it in GitHub Desktop.
diff -r c384f4f5f238 src/screen.c
--- a/src/screen.c Wed Jun 06 12:06:15 2012 +0200
+++ b/src/screen.c Wed Jun 06 20:15:04 2012 +0900
@@ -4586,6 +4586,14 @@
}
else
mb_utf8 = FALSE; /* don't draw as UTF-8 */
+
+ if (has_mbyte && (*mb_ptr2cells)(ptr) > 1)
+ {
+ c_extra = '<';
+ n_extra = 1;
+ n_attr = 2;
+ extra_attr = hl_attr(HLF_AT);
+ }
#endif
if (!attr_pri)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment