[gedit] Fixed the correct offset calculation in the special case fixed in da94b5
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fixed the correct offset calculation in the special case fixed in da94b5
- Date: Sun, 28 Feb 2010 21:09:37 +0000 (UTC)
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]