Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
2b3d46fa
Commit
2b3d46fa
authored
Sep 13, 2022
by
Matan Ziv-Av
Committed by
Tomaz Canabrava
Sep 16, 2022
Browse files
Set _enableReflowLines flag from profile when switching profiles
BUG: 459040
parent
2f75ddcb
Pipeline
#232852
passed with stage
in 3 minutes
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/session/SessionManager.cpp
View file @
2b3d46fa
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment