Move cursor back into last column (out of virtual last+1 column) when moving cursor up or down. Fixes bug 2405