Commit 1a448192 authored by louiz’'s avatar louiz’

Also, fix C-w

parent fce9a60f
......@@ -741,13 +741,12 @@ class Input(Win):
"""
if not len(self.text) or self.pos == 0:
return
previous_space = self.text[:self.pos+self.line_pos].rfind(' ')
if previous_space == -1:
previous_space = 0
diff = self.pos+self.line_pos-previous_space
for i in range(diff):
self.key_backspace(False)
self.rewrite_text()
separators = string.punctuation+' '
while self.pos > 0 and self.text[self.pos+self.line_pos-1] in separators:
self.key_backspace()
while self.pos > 0 and self.text[self.pos+self.line_pos-1] not in separators:
self.key_backspace()
return True
def delete_end_of_line(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment