aboutsummaryrefslogtreecommitdiff
path: root/vis-motions.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-05-03 18:00:52 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-03 18:00:52 +0200
commit71eab6d5d72145f17ab3d4c87945ac12176ae8e9 (patch)
tree333c473d5bd8448befdd9342de91232418a22ed2 /vis-motions.c
parent3c3214752b76c26d5503d7c88e6ec8505e338639 (diff)
downloadvis-71eab6d5d72145f17ab3d4c87945ac12176ae8e9.tar.gz
vis-71eab6d5d72145f17ab3d4c87945ac12176ae8e9.tar.xz
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.
Diffstat (limited to 'vis-motions.c')
-rw-r--r--vis-motions.c4
1 files changed, 2 insertions, 2 deletions
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