From a217c08cb342772b2adbb0ccf9cb2d64550376fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 3 Sep 2014 10:45:12 +0200 Subject: Fix cursor placement after delete operation --- config.def.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index b43c03b..dbdded9 100644 --- a/config.def.h +++ b/config.def.h @@ -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); } -- cgit v1.2.3