[vte] terminal: Don't append data to sealed chunks
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] terminal: Don't append data to sealed chunks
- Date: Thu, 21 Nov 2019 19:02:29 +0000 (UTC)
commit 5ad5aea9f9ad3dc0fc3f04b9301c560b9cf86806
Author: Christian Persch <chpe src gnome org>
Date: Thu Nov 21 20:01:30 2019 +0100
terminal: Don't append data to sealed chunks
src/vte.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 138cd553..2894c4ca 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4081,7 +4081,7 @@ Terminal::feed(std::string_view const& data,
vte::base::Chunk* chunk = nullptr;
if (!m_incoming_queue.empty()) {
auto& achunk = m_incoming_queue.back();
- if (length < achunk->remaining_capacity())
+ if (length < achunk->remaining_capacity() && !achunk->sealed())
chunk = achunk.get();
}
if (chunk == nullptr) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]