aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-10-23 17:13:10 +0000
committerTiago Cunha <tcunha@gmx.com>2009-10-23 17:13:10 +0000
commitc643ac48278b793d17d0e8edd140af6d9d68128a (patch)
treefc972e85a483adfe0858d3a981d681dbbad783a0 /tmux.h
parent97e02eae7d86c3c5b5c8610d3bd48c0fa1d0398e (diff)
downloadrtmux-c643ac48278b793d17d0e8edd140af6d9d68128a.tar.gz
rtmux-c643ac48278b793d17d0e8edd140af6d9d68128a.tar.bz2
rtmux-c643ac48278b793d17d0e8edd140af6d9d68128a.zip
Sync OpenBSD patchset 420:
UTF-8 combined character fixes. Thai can have treble combinations (1 x width=1 then 2 x width=0) so bump the UTF-8 cell data size to 9 and alter the code to allow this. Also break off the combining code into a separate function, handle any further combining beyond the buffer size by replacing the character with _s, and when redrawing the UTF-8 character don't assume the first part has just been printed, redraw the entire line.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 6c2cae90..29bbd011 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.479 2009-10-23 17:10:00 tcunha Exp $ */
+/* $Id: tmux.h,v 1.480 2009-10-23 17:13:10 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -514,7 +514,7 @@ struct grid_cell {
} __packed;
/* Grid cell UTF-8 data. Used instead of data in grid_cell for UTF-8 cells. */
-#define UTF8_SIZE 8
+#define UTF8_SIZE 9
struct grid_utf8 {
u_char width;
u_char data[UTF8_SIZE];