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
9d041222
Commit
9d041222
authored
Feb 20, 2021
by
Carlos Alves
Browse files
Fix ReFlow bug while Splitting View
History content was changing when splitting the view.
parent
41b8f742
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
9d041222
...
...
@@ -435,7 +435,7 @@ void Screen::resizeImage(int new_lines, int new_columns)
_isResize
=
true
;
int
cursorLine
=
getCursorLine
();
const
int
oldCursorLine
=
(
cursorLine
==
_lines
-
1
)
?
new_lines
-
1
:
cursorLine
;
const
int
oldCursorLine
=
(
cursorLine
==
_lines
-
1
||
cursorLine
>
new_lines
-
1
)
?
new_lines
-
1
:
cursorLine
;
// Check if _history need to change
if
(
_enableReflowLines
&&
new_columns
!=
_columns
&&
_history
->
getLines
()
&&
_history
->
getMaxLines
())
{
...
...
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