[gedit] Fixed the correct offset calculation in the special case fixed in da94b5



commit e4856435a3d2e1c0e9118f8a42e46d9644494f85
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Feb 28 22:09:29 2010 +0100

    Fixed the correct offset calculation in the special case fixed in da94b5

 gedit/gedit-document-input-stream.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-document-input-stream.c b/gedit/gedit-document-input-stream.c
index 3fcc2aa..4b01d9a 100644
--- a/gedit/gedit-document-input-stream.c
+++ b/gedit/gedit-document-input-stream.c
@@ -326,6 +326,9 @@ read_line (GeditDocumentInputStream *stream,
 
 			if (read == to_write)
 			{
+				/* Make sure offset is still one past what we
+				   wrote... */
+				++offset;
 				break;
 			}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]