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
poezio
poezio
Commits
2e8d99be
Verified
Commit
2e8d99be
authored
Jul 19, 2014
by
mathieui
Browse files
Fix #2563 (fix the asserts in adjust_view_pos)
Thanks djanos
parent
a3556a79
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/windows/inputs.py
View file @
2e8d99be
...
...
@@ -534,9 +534,8 @@ class Input(Win):
if
self
.
view_pos
<
0
:
self
.
view_pos
=
0
assert
(
self
.
pos
>
self
.
view_pos
and
self
.
pos
<
self
.
view_pos
+
max
(
self
.
width
,
3
))
assert
(
self
.
pos
>=
self
.
view_pos
and
self
.
pos
<=
self
.
view_pos
+
max
(
self
.
width
,
3
))
def
refresh
(
self
):
log
.
debug
(
'Refresh: %s'
,
self
.
__class__
.
__name__
)
...
...
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