summaryrefslogtreecommitdiff
path: root/src/dynamic_buffer_iterator.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-11-10 19:38:44 +0100
committerMaxime Coste <mawww@kakoune.org>2024-11-11 21:29:56 +1100
commit66aa444c6f94bc539d23d47a8e58b4909accbd64 (patch)
treee042dec68103dc0f67cb81a5bd9a3b3eef871ae0 /src/dynamic_buffer_iterator.cc
parent8c49c8ee404fecc110338c08eeed515b63caa93c (diff)
Simplify ui_out argument parsing
Tests print a confusing error ./run: line 214: shift: shift count out of range This is because ui_out -until-grep now shifts twice which conflicts with the weird shift at the end of ui_out. It also has a loop, making it possible to do something like "ui_out foo bar baz" to expect three different messages. We don't use this feature anywhere, and it seems just super surprising, given that ui_out now consumes between 1 and 3 arguments each time. Let's get rid of the loop, and always run shift right next to where we actually use the argument. This should make things less brittle.
Diffstat (limited to 'src/dynamic_buffer_iterator.cc')
0 files changed, 0 insertions, 0 deletions