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
4d4d70d6
Commit
4d4d70d6
authored
Nov 13, 2020
by
Carlos Alves
Committed by
Tomaz Canabrava
Dec 31, 2020
Browse files
Ignore current cursor line
Don't need to reflow the current cursor line. (it will bug and crash)
parent
2be00da5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
4d4d70d6
...
...
@@ -408,15 +408,11 @@ void Screen::resizeImage(int new_lines, int new_columns)
// Then move the data to lines below.
currentPos
=
0
;
while
(
currentPos
!=
_screenLines
.
count
())
{
while
(
currentPos
!=
_screenLines
.
count
()
&&
currentPos
!=
_cuY
)
{
const
bool
shouldCopy
=
_screenLines
[
currentPos
].
size
()
>
new_columns
;
// Copy from the current line, to the next one.
if
(
shouldCopy
)
{
// If we are in the last line, append a new one.
if
(
currentPos
==
_screenLines
.
count
()
-
1
)
{
_screenLines
.
append
(
ImageLine
{});
}
_cuY
++
;
auto
values
=
_screenLines
[
currentPos
].
mid
(
new_columns
);
...
...
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