bugfixes: many things were broken by a runaway multi-cursor edit