fakevim: Methods for handling input in sub-modes

Code from handleCommandMode*() was moved to separate handle*SubMode()
methods. The common code is in handleCommandMode() which is called on
user input in command mode. This method additionally handles clearing
flags for command submodes.

Method handleMovement() handles movement input. This method is called if
no command is active (from handleNoSubMode()) or if current incomplete
command can be followed by movement (finishMovement() is called to
finalize the command).

Unneeded finishMovement() calls were removed.

Change-Id: Ib5ca5b6ec252224eee3285680572fb9fcefd0d46
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2012-11-07 17:34:52 +01:00
committed by hjk
parent d452da17a7
commit 29c448edb1
2 changed files with 629 additions and 538 deletions

File diff suppressed because it is too large Load Diff