Skip to content

Commit

Permalink
Fix cursor placement after delete operation
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Sep 3, 2014
1 parent 78c48b2 commit a217c08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ void op_delete(OperatorContext *c) {
return;
size_t len = c->range.end - c->range.start;
vis_delete(vis, c->range.start, len);
if (c->pos > c->range.start)
window_cursor_to(vis->win->win, c->range.start);
window_cursor_to(vis->win->win, c->range.start);
vis_draw(vis);
}

Expand Down

0 comments on commit a217c08

Please sign in to comment.