diff options
author | 2015-04-05 20:07:17 +0200 | |
---|---|---|
committer | 2015-04-19 16:56:48 -0700 | |
commit | 32936b0eb95c9cee54d3887328e4bfd01c961922 (patch) | |
tree | dfbaf159a3f6d20acaa4ab9de3515c76feb64ee4 /input.h | |
parent | 3559f20c8ffca8b036ff4aa6833e9e4c67eea7fc (diff) |
Change lookahead_list into a queue
Using builtin `commandline -f`, one would expect to have commands executed in
the order that they were given. This motivates the change to a queue.
Unfortunately, fish internals still need lookahead_list to act as a stack. Add
and rename functions to support both cases and have lookahead_list as
a std::deque internally.
This code is delicate, and we should probably dog-food this in nightly for
a while before the next-minor release.
Fixes #1567
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,11 +112,11 @@ void input_destroy(); wint_t input_readch(bool allow_commands = true); /** - Push a character or a readline function onto the stack of unread + Enqueue a character or a readline function to the queue of unread characters that input_readch will return before actually reading from fd 0. */ -void input_unreadch(wint_t ch); +void input_queue_ch(wint_t ch); /** |