Set vi mode in vi tests, and fix bug this uncovered
Review Request #106913 - Created Oct. 16, 2012 and submitted
|Simon St James|
viInputMode() was false during vi mode tests, when it shouldn't have been ;) It's actually amazing how well this worked, but it did not work perfectly as it covered up a bug. This patch enables vi input mode during vi mode tests, and fixes the bug (plus adds a small hint about what's wrong should we ever regress). To reproduce the bug: Create a document with the contents 12345 Do: gg<ctrl-v>ldvld The result should be 5, but isn't.
All tests pass; minor additional mini-test added.