]> git.eshelyaron.com Git - emacs.git/commitdiff
(struct it): Replace bool truncate_lines_p with a line_wrap enum
authorChong Yidong <cyd@stupidchicken.com>
Tue, 24 Jun 2008 17:56:41 +0000 (17:56 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 24 Jun 2008 17:56:41 +0000 (17:56 +0000)
possessing three possible values.

src/dispextern.h

index 8ea9ab4c3e569ced88c7bbf2cfbb846389f15e55..1761bede3e2e3e230e2387d8c28437320107e57b 100644 (file)
@@ -1804,6 +1804,14 @@ enum prop_idx
   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 @@ struct it
      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;