From 39edf75c209db81fbfda9bf8b9f33b721a32ac98 Mon Sep 17 00:00:00 2001 From: David Freese Date: Sun, 18 Mar 2012 18:36:49 -0500 Subject: [PATCH] Clear sent text * add UTF8 code to only clear to ^r in Tx buffer - allows user to enter text with multiple ^r entries in a single text buffer --- src/widgets/FTextRXTX.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/FTextRXTX.cxx b/src/widgets/FTextRXTX.cxx index 6ae3ded6..6bcf1069 100644 --- a/src/widgets/FTextRXTX.cxx +++ b/src/widgets/FTextRXTX.cxx @@ -890,7 +890,8 @@ void FTextTX::clear(void) /// void FTextTX::clear_sent(void) { - clear(); + tbuf->remove(0, utf8_txpos); + sbuf->remove(0, utf8_txpos); txpos = 0; utf8_txpos = 0; bkspaces = 0;