summaryrefslogtreecommitdiff
path: root/src/input.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-06-25 10:34:35 +0700
committerAdrian Thurston <thurston@colm.net>2018-06-25 10:34:35 +0700
commit2c3a53fcc12e2435cb8950c146c1f7fe63949b72 (patch)
tree2988c71ee8294bff43b8c8fe830d25f021634a06 /src/input.h
parent58fe99bfaa90bd59cc28a69d36407b06cbaac560 (diff)
downloadcolm-2c3a53fcc12e2435cb8950c146c1f7fe63949b72.tar.gz
limit the undoing of consumed data
When undoing the consume of make sure we don't send back more than we took out. Once we hit the limit then move backwards to the previous stream, which we now stash.
Diffstat (limited to 'src/input.h')
-rw-r--r--src/input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input.h b/src/input.h
index 0cf77566..fbe2ec01 100644
--- a/src/input.h
+++ b/src/input.h
@@ -77,7 +77,6 @@ struct run_buf
{
enum run_buf_type type;
long length;
- struct colm_tree *tree;
long offset;
struct run_buf *next, *prev;
@@ -145,6 +144,8 @@ struct stream_impl_seq
struct seq_buf *queue;
struct seq_buf *queue_tail;
+ struct seq_buf *stash;
+
long line;
long column;
long byte;