Fix failure in unit test of vi mode

This commit is contained in:
Jorgen Stenarson
2010-07-20 19:12:13 +02:00
parent 899ab84bfd
commit c87e0b429c
4 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
SET VERSION=1.6
SET VERSION=1.7
python setup.py build_sphinx
python setup.py build_sphinx -b latex
+1
View File
@@ -327,6 +327,7 @@ class ViCommand:
self.readline._vi_multiplier2 = ''
self.set_override_multiplier (0)
self.skip_multipler = False
self.tabstop = 4
self.dct_fcn = {
ord('$') : self.key_dollar,
ord('^') : self.key_hat,
+4
View File
@@ -56,6 +56,10 @@ class Event:
self.char=u'\x1b'
elif char==u"backspace":
self.char=u'\x08'
elif char==u"tab":
self.char=u'\t'
elif char==u"space":
self.char=u' '
else:
self.char = char
+3 -3
View File
@@ -27,7 +27,7 @@ class ViModeTest (ViMode):
self.vi_set_insert_mode (True)
self.lst_completions = []
self.completer = self.mock_completer
self.completer_delims = u' u'
self.completer_delims = u' '
self.tabstop = 4
def get_mock_console (self):
@@ -52,8 +52,8 @@ class ViModeTest (ViMode):
lst_key = [keytext]
for key in lst_key:
keyinfo, event = keytext_to_keyinfo_and_event (key)
dispatch_func = self.key_dispatch.get( keyinfo.tuple(),self.vi_key)
self.tested_commands[dispatch_func.__name__]=dispatch_func
dispatch_func = self.key_dispatch.get(keyinfo.tuple(), self.vi_key)
self.tested_commands[dispatch_func.__name__] = dispatch_func
dispatch_func (event)
def vi_accept_line (self, e):