mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[escher/layout_field] Allow copy-paste of ^2
This commit is contained in:
@@ -168,6 +168,14 @@ void LayoutField::ContentView::copySelection() {
|
||||
|
||||
if (m_selectionStart == m_selectionEnd) {
|
||||
m_selectionStart.serializeParsedExpression(buffer, bufferSize);
|
||||
if (buffer[0] == 0) {
|
||||
int offset = 0;
|
||||
if (m_selectionStart.type() == LayoutNode::Type::VerticalOffsetLayout) {
|
||||
assert(bufferSize > 1);
|
||||
buffer[offset++] = UCodePointEmpty;
|
||||
}
|
||||
m_selectionStart.serializeForParsing(buffer + offset, bufferSize - offset);
|
||||
}
|
||||
} else {
|
||||
Layout selectionParent = m_selectionStart.parent();
|
||||
assert(!selectionParent.isUninitialized());
|
||||
|
||||
Reference in New Issue
Block a user