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
02ba277d
Commit
02ba277d
authored
Nov 29, 2020
by
Carlos Alves
Committed by
Tomaz Canabrava
Dec 31, 2020
Browse files
Reflow current cursor bug
Calculate the current cursor position lines needed.
parent
73ed15f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
02ba277d
...
...
@@ -393,6 +393,7 @@ void Screen::resizeImage(int new_lines, int new_columns)
count_needed_lines
+=
_screenLines
[
currentPos
].
count
()
/
(
new_columns
+
1
);
currentPos
++
;
}
count_needed_lines
+=
_screenLines
[
currentPos
].
count
()
/
(
new_columns
+
1
);
// If it will need more lines than new_lines have, send lines to _history
count_needed_lines
+=
_cuY
;
...
...
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