summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-05-06 02:47:34 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-05-06 02:47:34 +0200
commitbc67a7d6548443aec9568fda56187978c64736a8 (patch)
treedec935226069124753df1b2006b96e64decc1175
parent897aa5bd70b07831f98e884c63f52333f5a67439 (diff)
downloadpoezio-bc67a7d6548443aec9568fda56187978c64736a8.tar.gz
poezio-bc67a7d6548443aec9568fda56187978c64736a8.tar.bz2
poezio-bc67a7d6548443aec9568fda56187978c64736a8.tar.xz
poezio-bc67a7d6548443aec9568fda56187978c64736a8.zip
Aha, remove this duplicate function
-rw-r--r--src/windows.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/windows.py b/src/windows.py
index bfe3102e..e34565e7 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -757,19 +757,6 @@ class Input(Win):
def is_empty(self):
return len(self.text) == 0
- def delete_word(self):
- """
- Delete the word behind the cursor.
- """
- if not len(self.text) or self.pos == 0:
- return
- 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 jump_word_left(self):
"""
Move the cursor one word to the left