diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 18:00:52 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 18:00:52 +0200 |
| commit | 71eab6d5d72145f17ab3d4c87945ac12176ae8e9 (patch) | |
| tree | 333c473d5bd8448befdd9342de91232418a22ed2 /text.c | |
| parent | 3c3214752b76c26d5503d7c88e6ec8505e338639 (diff) | |
| download | vis-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 'text.c')
| -rw-r--r-- | text.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -1675,15 +1675,3 @@ size_t text_mark_get(Text *txt, Mark mark) { return EPOS; } - -size_t text_history_get(Text *txt, size_t index) { - for (Revision *rev = txt->current_revision ? txt->current_revision : txt->history; rev; rev = rev->prev) { - if (index-- == 0) { - Change *c = rev->change; - while (c && c->next) - c = c->next; - return c ? c->pos : EPOS; - } - } - return EPOS; -} |
