[apps/code] Reload the view for autocompletion changes

This commit is contained in:
Léa Saviot
2020-03-13 19:59:54 +01:00
committed by Émilie Feral
parent f82079a40a
commit 77e34f0446

View File

@@ -204,6 +204,7 @@ bool PythonTextArea::handleEvent(Ion::Events::Event event) {
|| event == Ion::Events::ShiftRight
|| event == Ion::Events::OK)
{
m_contentView.reloadRectFromPosition(m_contentView.cursorLocation(), false);
acceptAutocompletion(event != Ion::Events::ShiftRight);
if (event != Ion::Events::ShiftRight) {
// Do not process the event more
@@ -212,6 +213,7 @@ bool PythonTextArea::handleEvent(Ion::Events::Event event) {
}
} else {
removeAutocompletion();
m_contentView.reloadRectFromPosition(m_contentView.cursorLocation(), false);
}
}
return TextArea::handleEvent(event);