mksh: minor optimization in ps1_invisible