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
4e875cdf
Commit
4e875cdf
authored
Aug 19, 2022
by
Matan Ziv-Av
Committed by
Kurt Hindenburg
Aug 25, 2022
Browse files
Prevent _replModeStart line number from becoming negative
Hopefully, this solves:
BUG: 457920
BUG: 458015
parent
a69656aa
Pipeline
#222726
passed with stage
in 3 minutes and 50 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
4e875cdf
...
...
@@ -1143,8 +1143,10 @@ void Screen::scrollUp(int from, int n)
scrollPlacements
(
n
);
}
if
(
_replMode
!=
REPL_None
)
{
_replModeStart
=
std
::
make_pair
(
_replModeStart
.
first
-
1
,
_replModeStart
.
second
);
_replModeEnd
=
std
::
make_pair
(
_replModeEnd
.
first
-
1
,
_replModeEnd
.
second
);
if
(
_replModeStart
.
first
>
0
)
{
_replModeStart
=
std
::
make_pair
(
_replModeStart
.
first
-
1
,
_replModeStart
.
second
);
_replModeEnd
=
std
::
make_pair
(
_replModeEnd
.
first
-
1
,
_replModeEnd
.
second
);
}
if
(
_replLastOutputStart
.
first
>
-
1
)
{
_replLastOutputStart
=
std
::
make_pair
(
_replLastOutputStart
.
first
-
1
,
_replLastOutputStart
.
second
);
_replLastOutputEnd
=
std
::
make_pair
(
_replLastOutputEnd
.
first
-
1
,
_replLastOutputEnd
.
second
);
...
...
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