From 71eab6d5d72145f17ab3d4c87945ac12176ae8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 3 May 2017 18:00:52 +0200 Subject: text: remove text_history_get function As currently implemented this does not properly integrate with multiple cursor support. The functionality should be provided in a layer higher up. The jumplist and changelist need to be redesigned, for now they are broken. --- vis-motions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis-motions.c') diff --git a/vis-motions.c b/vis-motions.c index c3afe16..92ab995 100644 --- a/vis-motions.c +++ b/vis-motions.c @@ -187,7 +187,7 @@ static size_t window_changelist_next(Vis *vis, Win *win, size_t pos) { cl->index = 0; else if (cl->index > 0 && pos == cl->pos) cl->index--; - size_t newpos = text_history_get(txt, cl->index); + size_t newpos = pos; if (newpos == EPOS) cl->index++; else @@ -204,7 +204,7 @@ static size_t window_changelist_prev(Vis *vis, Win *win, size_t pos) { cl->index = 0; else if (pos == cl->pos) win->changelist.index++; - size_t newpos = text_history_get(txt, cl->index); + size_t newpos = pos; if (newpos == EPOS) cl->index--; else -- cgit v1.2.3