summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py
index 1b5c57ce..267c0798 100644
--- a/src/window.py
+++ b/src/window.py
@@ -429,7 +429,10 @@ class Input(Win):
self.hit_list.append(self.hit_list.pop(0)) # rotate list
end = len(begin) + len(after)
x -= end
- self.win.move(y, x)
+ try:
+ self.win.move(y, x)
+ except:
+ pass
# remove begin from the line
self.win.clrtoeol()
self.text = self.text[:-end]