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
9a608fe4
Commit
9a608fe4
authored
Feb 14, 2022
by
Matan Ziv-Av
Committed by
Tomaz Canabrava
Feb 24, 2022
Browse files
Make sure all the screen is refreshed when toggling Mode_AppScreen
Otherwise, some images from the other screen might not be deleted.
parent
8030c198
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vt102Emulation.cpp
View file @
9a608fe4
...
...
@@ -2020,8 +2020,9 @@ void Vt102Emulation::setMode(int m)
_screen
[
1
]
->
setDefaultRendition
();
_screen
[
1
]
->
clearSelection
();
setScreen
(
1
);
if
(
_currentScreen
)
{
// We may get here before we have a
TerminalDisplay
if
(
_currentScreen
&&
_currentScreen
->
current
TerminalDisplay
())
{
_currentScreen
->
delPlacements
(
1
);
_currentScreen
->
currentTerminalDisplay
()
->
update
();
}
break
;
}
...
...
@@ -2065,6 +2066,9 @@ void Vt102Emulation::resetMode(int m)
case
MODE_AppScreen
:
_screen
[
0
]
->
clearSelection
();
setScreen
(
0
);
if
(
_currentScreen
&&
_currentScreen
->
currentTerminalDisplay
())
{
_currentScreen
->
currentTerminalDisplay
()
->
update
();
}
break
;
}
// FIXME: Currently this has a redundant condition as MODES_SCREEN is 7
...
...
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