Fix line number toggling so it works in all modes, and force a screen redraw so that it updates when used in command mode.