A bit of a monster, I'm afraid ;)
This patch mainly does two things -
- Re-instates the globs of Emulated Command Bar tests that managed to get lost when the Vi Mode tests were split out, way back in 2014 (whoops! :))
- Refactors the emulatedcommandbar class to be less huge - it is now split into several files, and moved into its own emulatedcommandbar/ subdirectory.
It uses a small amount of C++11 features which I hope are OK (I'm not sure what the policy is, nowadays) - mainly in-class initialisers and lambdas + std::function.