Mercurial > emacs
changeset 96234:d83f0f57503f
(struct it): Replace bool truncate_lines_p with a line_wrap enum
possessing three possible values.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 24 Jun 2008 17:56:41 +0000 |
parents | 514e5b8b3fbf |
children | 659365240213 |
files | src/dispextern.h |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispextern.h Tue Jun 24 17:56:14 2008 +0000 +++ b/src/dispextern.h Tue Jun 24 17:56:41 2008 +0000 @@ -1804,6 +1804,14 @@ LAST_PROP_IDX }; +/* An enumerator for the method of wrapping long lines. */ + +enum line_wrap_method +{ + TRUNCATE, + WORD_WRAP, + WINDOW_WRAP +}; struct it_slice { @@ -2008,8 +2016,7 @@ where the `^' can be replaced by a display table entry. */ unsigned ctl_arrow_p : 1; - /* 1 means lines are truncated. */ - unsigned truncate_lines_p : 1; + enum line_wrap_method line_wrap; /* Non-zero means that the current face has a box. */ unsigned face_box_p : 1;