[moserial] always append new hex output to end of textbuffer, not at cursor pos
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [moserial] always append new hex output to end of textbuffer, not at cursor pos
- Date: Tue, 18 Dec 2012 19:51:02 +0000 (UTC)
commit 629ba457857652be14243329bd6cd847db8fe928
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Tue Dec 18 14:50:26 2012 -0500
always append new hex output to end of textbuffer, not at cursor pos
src/HexTextBuffer.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/HexTextBuffer.vala b/src/HexTextBuffer.vala
index e9a0392..57a6792 100644
--- a/src/HexTextBuffer.vala
+++ b/src/HexTextBuffer.vala
@@ -74,7 +74,7 @@ public class moserial.HexTextBuffer : TextBuffer
#else
this.insert(nextCharIter, "\n%08x".printf(hexBytes), 9);
#endif
- this.get_iter_at_offset(out nextCharIter, this.cursor_position);
+ this.get_end_iter (out nextCharIter);
// Format offset info
this.get_iter_at_mark(out startIter, startMark);
@@ -87,7 +87,7 @@ public class moserial.HexTextBuffer : TextBuffer
#else
this.insert(nextCharIter, " ", 1);
#endif
- this.get_iter_at_offset(out nextCharIter, this.cursor_position);
+ this.get_end_iter (out nextCharIter);
// Save current position in nextHexMark
this.delete_mark(nextHexMark);
@@ -101,7 +101,7 @@ public class moserial.HexTextBuffer : TextBuffer
#else
this.insert(nextCharIter, " ", 51);
#endif
- this.get_iter_at_offset(out nextCharIter, this.cursor_position);
+ this.get_end_iter (out nextCharIter);
// Save current nextCharMark
this.delete_mark(nextCharMark);
nextCharMark = new TextMark("nextChar", true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]