Commit 2b3d46fa authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Tomaz Canabrava
Browse files

Set _enableReflowLines flag from profile when switching profiles

BUG: 459040
parent 2f75ddcb
Pipeline #232852 passed with stage
in 3 minutes
......@@ -275,7 +275,7 @@ void SessionManager::applyProfile(Session *session, const Profile::Ptr &profile,
}
if (apply.shouldApply(Profile::AllowEscapedLinks) || apply.shouldApply(Profile::ReflowLines)) {
const bool shouldEnableUrlExtractor = profile->allowEscapedLinks();
const bool enableReflowLines = profile->allowEscapedLinks();
const bool enableReflowLines = profile->property<bool>(Profile::ReflowLines);
for (TerminalDisplay *view : session->views()) {
view->screenWindow()->screen()->setReflowLines(enableReflowLines);
view->screenWindow()->screen()->setEnableUrlExtractor(shouldEnableUrlExtractor);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment