vrapper/vrapper — Issue #19: ctx stays in insert mode when 'x' not found
Author: keforbes
Created: 2011-11-20 19:09:17+00:00
State: open

We have a unit test in NormalModeTests that is failing:

@Test
public void test_cfx() throws Exception {
checkCommand(forKeySeq("ctx"),
"so",'m',"ething",
"so",'m',"ething");
assertEquals(NormalMode.NAME, adaptor.getCurrentModeName());
verify(userInterfaceService).setErrorMessage("'x' not found");
}

I tried this myself and it is indeed broken. I'm not sure when it happened or whose commit introduced this so I'm filing an issue. If you do 'ctx' when there is no 'x' on the line, the cursor will still be a block as if you were in NormalMode but any characters you type will appear as if you were in InsertMode. The first time this happened I couldn't get it to exit InsertMode either; hitting had no effect.