forked from qt-creator/qt-creator
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: