Fix cursor position handling when changing column after trigger insertion.
Fix trigger index after insertion in the model side.
Fix target trigger index update after trigger insertion.
Fix style.
Merge pull request #232 from kagu/fix_cursor_movement

Fix cursor movement after trigger insertion