Skip to content

Commit

Permalink
fixup! Watch view for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
newsch committed May 6, 2019
1 parent 056e0ca commit 2267531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fe_modes.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ int mode_insert(State *state, WINDOW *canvas_win, WINDOW *status_win) {
(state->ch_in == KEY_UP) || (state->ch_in == KEY_DOWN)) {
cursor_key_to_move(state->ch_in, state->cursor, state->view);
state->last_arrow_direction = state->ch_in;

// update direction change cursor
Cursor *old = mode_cfg->last_dir_change;
mode_cfg->last_dir_change = cursor_copy(state->cursor);
cursor_free(old);

} else {
if (' ' <= state->ch_in &&
state->ch_in <= '~') { // check if ch is printable
Expand Down

0 comments on commit 2267531

Please sign in to comment.