summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/inputs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/windows/inputs.py b/src/windows/inputs.py
index 8c2f2e2e..1eadc765 100644
--- a/src/windows/inputs.py
+++ b/src/windows/inputs.py
@@ -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__)