[2685] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH 1/5] Document oe_find_display_line

daemon@ATHENA.MIT.EDU (David Benjamin)
Wed Sep 29 16:08:14 2010

From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Wed, 29 Sep 2010 16:05:56 -0400
In-Reply-To: <1285790760-10916-1-git-send-email-davidben@mit.edu>

It took me a few readings before figuring out what it does.
---
 editwin.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/editwin.c b/editwin.c
index 9296014..222ba2c 100644
--- a/editwin.c
+++ b/editwin.c
@@ -425,6 +425,14 @@ static int oe_char_width(gunichar c, int column)
   return cw;
 }
 
+/* Finds the display line of 'e' starting at the character
+ * 'index'. The index just after the line is returned. Whether the
+ * line ends at a hard break (newline) or soft break (wrapping) is
+ * returned in 'hard'.
+ *
+ * If the point (e->index) is contained in the line, its position is
+ * returned in 'x'.
+ */
 static int oe_find_display_line(owl_editwin *e, int *x, int index, int *hard)
 {
   int width = 0, cw;
-- 
1.7.3.1.g716de


home help back first fref pref prev next nref lref last post