Disable support count for CaretKeyParser

Allow using '0' for move caret to beginnig of the line.
This commit is contained in:
Artur Shaik 2015-05-04 18:00:40 +06:00
parent 32562c6878
commit aeaa20c3b7

View File

@ -228,19 +228,8 @@ class CaretKeyParser(keyparser.CommandKeyParser):
super().__init__(win_id, parent, supports_count=True,
supports_chains=True)
self.read_config('caret')
self._supports_count = False
def __repr__(self):
return utils.get_repr(self)
class VisualKeyParser(keyparser.CommandKeyParser):
"""KeyParser for Visual mode."""
def __init__(self, win_id, parent=None):
super().__init__(win_id, parent, supports_count=True,
supports_chains=True)
self.read_config('visual')
def __repr__(self):
return utils.get_repr(self)