Fix in wrap mode change.

This commit is contained in:
Martín Lucas Golini
2024-05-19 19:34:40 -03:00
parent 4bc952dcc2
commit 8d7cdad71f

View File

@@ -918,7 +918,11 @@ void UICodeEditor::invalidateLongestLineWidth() {
}
void UICodeEditor::setLineWrapMode( LineWrapMode mode ) {
auto prevMode = mLineWrapping.getConfig().mode;
mLineWrapping.setLineWrapMode( mode );
if ( prevMode != mode && LineWrapMode::NoWrap == mode ) {
invalidateLongestLineWidth();
}
}
LineWrapType UICodeEditor::getLineWrapType() const {