Skip to content
GitLab
Menu
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
2c1ec710
Commit
2c1ec710
authored
Oct 03, 2020
by
Martin Tobias Holmedahl Sandsmark
Committed by
Kurt Hindenburg
Oct 04, 2020
Browse files
fix moving overlapping lines
parent
e45cda95
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
2c1ec710
...
...
@@ -1010,7 +1010,7 @@ void Screen::moveImage(int dest, int sourceBegin, int sourceEnd)
const
int
srcY
=
sourceBegin
/
_columns
;
if
(
dest
<
sourceBegin
)
{
for
(
int
i
=
0
;
i
<=
lines
;
i
++
)
{
_screenLines
[
destY
+
i
]
=
std
::
move
(
_screenLines
[
srcY
+
i
]
)
;
_screenLines
[
destY
+
i
]
=
_screenLines
[
srcY
+
i
];
_lineProperties
[
destY
+
i
]
=
_lineProperties
[
srcY
+
i
];
}
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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