diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-28 14:03:57 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-28 14:12:51 +0100 |
| commit | 043a183d1465f578775e2a28bdc0a5c44afccd40 (patch) | |
| tree | ce040f1bdea8af6ea0819532fb4a1849fb3a831b /lua/lexers/gap.lua | |
| parent | b8afec996a400fe42e110033031443d18175d4cd (diff) | |
| download | vis-043a183d1465f578775e2a28bdc0a5c44afccd40.tar.gz vis-043a183d1465f578775e2a28bdc0a5c44afccd40.tar.xz | |
vis: keep track of most recently processed keys of input queue
Currently the key handling functions do not know through which mapping
they were invoked. As an example the `count` handler exploits the
implementation detail that the input queue is stored in contiguous
memory, meaning `keys[-1]` gives access to the digit being pressed.
This adds infrastructure to keep track of the two most recently processed
keys of the input queue.
The information is guaranteed to be accurate for the initial invocation
of the key handler but will be overwritten in case new keys are pushed
to the input queue (e.g. through vis_keys_feed).
Diffstat (limited to 'lua/lexers/gap.lua')
0 files changed, 0 insertions, 0 deletions
