mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Fix in wrap mode change.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user