Fix cursor position handling when changing column after trigger insertion

Fix for issue #220.