edit.run_after_keychord(Editor_state, 'C-left', 'left')
check_eq(Editor_state.cursor1.pos, 1, 'check')
edit.run_after_keychord(Editor_state, 'C-left', 'left')
check_eq(Editor_state.cursor1.pos, 1, 'check')
edit.run_after_keychord(Editor_state, 'C-left', 'left')
check_eq(Editor_state.cursor1.pos, 1, 'check')
edit.run_after_keychord(Editor_state, 'C-left', 'left')
check_eq(Editor_state.cursor1.pos, 9, 'check')
edit.run_after_keychord(Editor_state, 'C-left', 'left')
check_eq(Editor_state.cursor1.pos, 1, 'check')
edit.run_after_keychord(Editor_state, 'C-left', 'left')
check_eq(Editor_state.cursor1.line, 1, 'line')
check_eq(Editor_state.cursor1.pos, 5, 'pos')
edit.run_after_keychord(Editor_state, 'C-right', 'right')
check_eq(Editor_state.cursor1.pos, 4, 'check')
edit.run_after_keychord(Editor_state, 'C-right', 'right')
check_eq(Editor_state.cursor1.pos, 8, 'check')
edit.run_after_keychord(Editor_state, 'C-right', 'right')
check_eq(Editor_state.cursor1.pos, 4, 'check')
edit.run_after_keychord(Editor_state, 'C-right', 'right')
check_eq(Editor_state.cursor1.pos, 9, 'check')
edit.run_after_keychord(Editor_state, 'C-right', 'right')
check_eq(Editor_state.cursor1.line, 2, 'line')
check_eq(Editor_state.cursor1.pos, 4, 'pos')