Commit 629ba457 authored by Michael J. Chudobiak's avatar Michael J. Chudobiak

always append new hex output to end of textbuffer, not at cursor pos

parent cc2f4315
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment