Set vi mode in vi tests, and fix bug this uncovered

Review Request #106913 - Created Oct. 16, 2012 and submitted

Information
Simon St James
kate
Reviewers
kate
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.
Simon St James
Review request changed

Status: Closed (submitted)

Change Summary:

(in best "Commit Hook" voice: )

This review has been submitted with commit f0da09bfc2adb9c8b63243f6d8cb1eec0be9e065 by Simon St James to branch master.

Loading...